Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mtree: prepend "./" to all entries other than "."
casync attempts to output all entries as a Full entry but for top-level entries, there is no "/" in the escaped pathname, resulting in the entry being treated as a Relative entry. As per the specification[1], this results in any subsequent Relative entries (such as top-level files) being treated as children of the directory which causes manifests produced by casync to fail. The simplest solution (and the one that "nmtree -C" does) is to prefix every path with "./". However, nmtree does not like "./." (internally it requires every entry referenced in an Full entry's path to already have been referenced in the spec) and so we have to special-case the "." path. [1]: https://man.netbsd.org/mtree.5 Ref: vbatts/go-mtree#146 Signed-off-by: Aleksa Sarai <[email protected]>
- Loading branch information