Skip to content

mount: allow / in archive names #2263

@enkore

Description

@enkore

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions