Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btrbk: remove double-slash from file arguments
Sanitize file (or subvolume path) arguments in safe_cmd, effectively removing leading double slash. Files originating from "volume /" can be assembled as "//some/subvol", which is useful internally but undesired as command arguments, as ancient systems might interpret leading double slash "//" in a special way. Posix states: > A pathname that begins with two successive slashes may be > interpreted in an implementation-defined manner, although more than > two leading slashes shall be treated as a single slash.
- Loading branch information