summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/archive.h.in
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2007-04-14 22:34:10 +0000
committerkientzle <kientzle@FreeBSD.org>2007-04-14 22:34:10 +0000
commit7cead8e1b5557dab20b40aa5c83b5fabc472d1e3 (patch)
treef7c9108819c3e455e2359c0417fcbc48a4df0bb9 /lib/libarchive/archive.h.in
parentd7e5af0175ad9acf090a0f95a484847cfcf3b392 (diff)
downloadFreeBSD-src-7cead8e1b5557dab20b40aa5c83b5fabc472d1e3.zip
FreeBSD-src-7cead8e1b5557dab20b40aa5c83b5fabc472d1e3.tar.gz
Overhaul of 'ar' support:
* use "AR_GNU" as the format name instead of AR_SVR4 (it's what everyone is going to call it anyway) * Simplify numeric parsing to unsigned (none of the numeric values should ever be negative); don't run off end of numeric fields. * Finish parsing the common header fields before the next I/O request (which might dump the contents) * Be smarter about format guessing and trimming filenames. * Most of the magic values are only used in one place, so just inline them. * Many more comments. * Be smarter about handling damaged entries; return something reasonable. * Call it a "filename table" instead of a "string table" * Update tests. Enable selection of 'ar', 'arbsd', and 'argnu' formats by name (this allows bsdtar to create ar format archives). The 'ar' writer still needs some work; it should reject entries that aren't regular files and should probably also strip leading paths from filenames.
Diffstat (limited to 'lib/libarchive/archive.h.in')
-rw-r--r--lib/libarchive/archive.h.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libarchive/archive.h.in b/lib/libarchive/archive.h.in
index afaa40dd..3fa3273 100644
--- a/lib/libarchive/archive.h.in
+++ b/lib/libarchive/archive.h.in
@@ -178,7 +178,7 @@ typedef int archive_close_callback(struct archive *, void *_client_data);
#define ARCHIVE_FORMAT_ZIP 0x50000
#define ARCHIVE_FORMAT_EMPTY 0x60000
#define ARCHIVE_FORMAT_AR 0x70000
-#define ARCHIVE_FORMAT_AR_SVR4 (ARCHIVE_FORMAT_AR | 1)
+#define ARCHIVE_FORMAT_AR_GNU (ARCHIVE_FORMAT_AR | 1)
#define ARCHIVE_FORMAT_AR_BSD (ARCHIVE_FORMAT_AR | 2)
/*-
OpenPOWER on IntegriCloud