diff options
author | kientzle <kientzle@FreeBSD.org> | 2007-04-14 22:34:10 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2007-04-14 22:34:10 +0000 |
commit | 7cead8e1b5557dab20b40aa5c83b5fabc472d1e3 (patch) | |
tree | f7c9108819c3e455e2359c0417fcbc48a4df0bb9 /lib/libarchive/archive_read_extract.c | |
parent | d7e5af0175ad9acf090a0f95a484847cfcf3b392 (diff) | |
download | FreeBSD-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_read_extract.c')
0 files changed, 0 insertions, 0 deletions