mirror of
https://github.com/restic/restic.git
synced 2026-09-18 18:27:58 +00:00
The SFTP backend created repository directories with pkg/sftp's Mkdir and MkdirAll, which take no mode argument, so the directories inherited the SFTP server's umask instead of the 0700 used for local repositories. Set the mode of each directory the backend creates.
11 lines
420 B
Plaintext
11 lines
420 B
Plaintext
Bugfix: Use mode 0700 for repository directories created over SFTP
|
|
|
|
When creating a repository over SFTP, restic created the repository directories
|
|
with the SFTP server's default permissions, often 0755, rather than the 0700
|
|
permissions it uses for local repositories.
|
|
|
|
Restic now creates these directories with 0700 permissions.
|
|
|
|
https://github.com/restic/restic/issues/4447
|
|
https://github.com/restic/restic/pull/21817
|