mirror of
https://github.com/borgbackup/borg.git
synced 2026-07-15 21:12:50 -04:00
hopefully this is the final fix. after first fixing of #6400 (by using os.umask after mkstemp), there was a new problem that chmod was not supported on some fs. even after fixing that, there were other issues, see the ACLs issue documented in #6933. the root cause of all this is tempfile.mkstemp internally using a very secure, but hardcoded and for our use case problematic mode of 0o600. mkstemp_mode (mosty copy&paste from python stdlib tempfile module + "black" formatting applied) supports giving the mode via the api, that is the only change needed. slightly dirty due to the _xxx imports from tempfile, but hopefully this will be supported in some future python version. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| base.py | ||
| darwin.pyx | ||
| freebsd.pyx | ||
| linux.pyx | ||
| posix.pyx | ||
| syncfilerange.pyx | ||
| windows.pyx | ||
| xattr.py | ||