Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mtree: append "/" to all directory entries
casync attempts to output all entries as a Full entry but for top-level directories, 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 is to force all directories to be treated as Full entries by adding a dummy "/" to the end of the pathname. It's not necessary to do anything for top-level files because they do not affect the "current directory" during parsing. [1]: https://man.netbsd.org/mtree.5 Ref: vbatts/go-mtree#146 Signed-off-by: Aleksa Sarai <[email protected]>
- Loading branch information