Date: Sat, 14 Apr 2007 08:20:31 +0000 (UTC) From: Tim Kientzle <kientzle@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libarchive Makefile archive_write_set_format_pax.c archive_write_set_format_ustar.c src/lib/libarchive/test Makefile test_tar_filenames.c Message-ID: <200704140820.l3E8KVqP092404@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kientzle 2007-04-14 08:20:31 UTC
FreeBSD src repository
Modified files:
lib/libarchive Makefile archive_write_set_format_pax.c
archive_write_set_format_ustar.c
lib/libarchive/test Makefile
Added files:
lib/libarchive/test test_tar_filenames.c
Log:
Conventionally, tar archives have always included a trailing '/'
for directories. bsdtar used to add this, but that recently got
lost somehow. So now I'm adding it back in libarchive.
The only odd part of doing this in libarchive: Adding a directory to
a tar archive and then reading it back again can yield a different name.
Add a test case to exercise some boundary conditions with
tar filenames and ensure that trailing slashes are added to
dir names only as necessary.
Thanks to: Oliver Lehmann for bringing this regression to my attention.
Revision Changes Path
1.66 +1 -1 src/lib/libarchive/Makefile
1.40 +87 -65 src/lib/libarchive/archive_write_set_format_pax.c
1.22 +16 -8 src/lib/libarchive/archive_write_set_format_ustar.c
1.4 +1 -0 src/lib/libarchive/test/Makefile
1.1 +156 -0 src/lib/libarchive/test/test_tar_filenames.c (new)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704140820.l3E8KVqP092404>
