-
-
Notifications
You must be signed in to change notification settings - Fork 837
mount: allow / in archive names #2263
Copy link
Copy link
Closed
Labels
Description
Only seems to be forbidden because it would make the borg mount code a bit more complex. Parsing is not hard; extra assertion would probably be posixpath.normpath(archive) == archive (to rule ../../ & friends out) and it does not start with a /.
Allowing these gives a nicer, more intuitive separation of archives, e.g. {hostname}/{date...} is much neater with / as a separator than -_#@ (whichever) for mounting it, but also because / is considered a separator in general.
Btw., currently . and .. are valid archive names; while these don't crash mount, they're inaccessible there.
Reactions are currently unavailable