cvs commit: src/lib/libarchive archive_write_set_format_cpio.c
archive_write_set_format_cpio_newc.c
src/lib/libarchive/test test_write_format_cpio.c
Tim Kientzle
kientzle at FreeBSD.org
Thu Oct 11 21:11:32 PDT 2007
kientzle 2007-10-12 04:11:31 UTC
FreeBSD src repository
Modified files:
lib/libarchive archive_write_set_format_cpio.c
archive_write_set_format_cpio_newc.c
lib/libarchive/test test_write_format_cpio.c
Log:
Correct the cpio writers to not accept data for non-regular files.
In particular, the previous code led to archives that had
non-empty bodies following directory entries. Not a fatal
problem, as bsdtar and GNU cpio are both happy to just skip
this bogus data, but it still shouldn't be there.
MFC after: 3 days
Revision Changes Path
1.12 +6 -1 src/lib/libarchive/archive_write_set_format_cpio.c
1.2 +6 -1 src/lib/libarchive/archive_write_set_format_cpio_newc.c
1.3 +29 -1 src/lib/libarchive/test/test_write_format_cpio.c
More information about the cvs-src
mailing list