Make mountpoint readable by owner only

This commit is contained in:
Matthieu Rakotojaona 2015-07-18 23:22:13 +02:00
parent 9ff98d34ef
commit 0e7c1668d5
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ func (cmd CmdMount) Execute(args []string) error {
if _, err := os.Stat(mountpoint); err != nil { if _, err := os.Stat(mountpoint); err != nil {
if os.IsNotExist(err) { if os.IsNotExist(err) {
cmd.global.Verbosef("Mountpoint %s doesn't exist, creating it\n", mountpoint) 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 { if err != nil {
return err return err
} }