From 0e7c1668d5694a98c54122920357b8e7320ec035 Mon Sep 17 00:00:00 2001 From: Matthieu Rakotojaona Date: Sat, 18 Jul 2015 23:22:13 +0200 Subject: [PATCH] Make mountpoint readable by owner only --- cmd/restic/cmd_mount.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/cmd_mount.go b/cmd/restic/cmd_mount.go index 62f8a5efa..906f450ed 100644 --- a/cmd/restic/cmd_mount.go +++ b/cmd/restic/cmd_mount.go @@ -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 }