Use fs blksize from stat(2)ed file when reading archives.

This commit is contained in:
Juan RP
2013-08-29 14:30:14 +02:00
parent 1bea5725ae
commit 24ff0472dd
6 changed files with 48 additions and 21 deletions

View File

@ -50,6 +50,11 @@
#define _PROGNAME "xbps-create"
/* libarchive 2.x compat */
#if ARCHIVE_VERSION_NUMBER >= 3000000
# define archive_write_finish(x) archive_write_free(x)
#endif
struct xentry {
TAILQ_ENTRY(xentry) entries;
char *file, *type, *target, *hash;
@ -781,7 +786,7 @@ main(int argc, char **argv)
}
archive_entry_linkresolver_free(resolver);
/* close and free archive */
archive_write_free(ar);
archive_write_finish(ar);
/*
* Archive was created successfully; flush data to storage,