diff options
author | Daniel Reichelt <hacking@nachtgeist.net> | 2016-03-17 01:40:17 +0100 |
---|---|---|
committer | Daniel Reichelt <hacking@nachtgeist.net> | 2016-03-17 01:40:17 +0100 |
commit | e1f6a3482065ccccaad36b83e19a8ed1dabceaef (patch) | |
tree | b546018ad4204c656d359910a5a1241e1303efc6 /AUTHORS | |
parent | f0cb6379b7c205df093c076334ccbaddf19ea880 (diff) |
provide wrapper for borg mount, fixes #743
- add archiver.main_mount()
- provide borgfs behaviour when the monolithic binary is called via a
symlink called borgfs
- docs: update usage of mount subcommand, provide examples for borgfs and
add symlink creation to standalone binary installation
- run build_usage
- add entry point in setup.py
- patch helpers.py:get_keys_dir() to allow mounting fstab entries with
"user" option set
Without this, setuid() called at some point by mount changes the HOME
environment variable to '/root' and os.expanduser('~') would return
'/root' as well, thus the mount would fail with
PermissionError: [Errno 13] Permission denied: '/root/.config'
After setuid(), the HOME variable stays intact, so we still can
explicitly query USER's home.
Also, os.path.expanduser() behaves differently for '~' and '~someuser'
as parameters: when called with an explicit username, the possibly set
environment variable HOME is no longer respected. So we have to check if
it is set and only expand the user's home directory if HOME is unset.
- add myself to AUTHORS
Diffstat (limited to 'AUTHORS')
-rw-r--r-- | AUTHORS | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -8,6 +8,7 @@ Borg Contributors ("The Borg Collective") - Michael Hanselmann <public@hansmi.ch> - Teemu Toivanen <public@profnetti.fi> - Marian Beermann <public@enkore.de> +- Daniel Reichelt <hacking@nachtgeist.net> Borg is a fork of Attic. |