libarchive/libarchive — pull request #20 by allanbrokeit (2012-09-08 09:13:18+00:00)
Title: 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 "./".