]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix mtree generation 20/head
authorAllan McRae <allan@archlinux.org>
Sat, 8 Sep 2012 08:59:33 +0000 (18:59 +1000)
committerAllan McRae <allan@archlinux.org>
Sat, 8 Sep 2012 09:12:03 +0000 (19:12 +1000)
commit32675a9001011095eddf6607513fed2901f0849d
tree722dadd9a81aa6a3429a64e04f707701ee7788dc
parent488798d8734f7624a34d4ae800bed47d625843da
Fix mtree generation

When generating an mtree file, libarchive writes a "Relative" type (entries
that have no /) for files in the base directory. For directories, this causes
the mtree reader to change the parent directory and give subsequent files in
the root directory the wrong path.

Fix this by prefixing entries in the root directory with "./".
libarchive/archive_write_set_format_mtree.c