Date: Sun, 26 Apr 2009 18:57:50 +0000 (UTC) From: Tim Kientzle <kientzle@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libarchive archive_read_support_format_mtree.c src/lib/libarchive/test test_read_format_mtree.c Message-ID: <200904261859.n3QIxX62000981@repoman.freebsd.org>
index | next in thread | raw e-mail
kientzle 2009-04-26 18:57:50 UTC
FreeBSD src repository
Modified files:
lib/libarchive archive_read_support_format_mtree.c
lib/libarchive/test test_read_format_mtree.c
Log:
SVN rev 191527 on 2009-04-26 18:57:50Z by kientzle
Reading an mtree file is supposed to provide
access to the file data (if the file exists on
disk). This was broken for the first regular
file; fix it and add a test so it won't break again.
In particular, this fixes the following idiom for creating
a tar archive in which every file is owned by root:
tar cf - --format=mtree . \
| sed -e 's/uname=[a-z]*/uname=root/' -e 's/uid=[0-9]*/uid=0/' \
| tar cf - @-
Revision Changes Path
1.16 +1 -1 src/lib/libarchive/archive_read_support_format_mtree.c
1.6 +14 -1 src/lib/libarchive/test/test_read_format_mtree.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904261859.n3QIxX62000981>
