mirror of
https://github.com/octoleo/restic.git
synced 2024-12-27 12:42:49 +00:00
Make mountpoint readable by owner only
This commit is contained in:
parent
9ff98d34ef
commit
0e7c1668d5
@ -61,7 +61,7 @@ func (cmd CmdMount) Execute(args []string) error {
|
||||
if _, err := os.Stat(mountpoint); err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
cmd.global.Verbosef("Mountpoint %s doesn't exist, creating it\n", mountpoint)
|
||||
err = os.Mkdir(mountpoint, os.ModeDir|0755)
|
||||
err = os.Mkdir(mountpoint, os.ModeDir|0700)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user