Fix dir permissions

This commit is contained in:
Jason A. Donenfeld 2018-05-15 19:57:43 +02:00
parent 4312a7c70a
commit 23eca94508
2 changed files with 2 additions and 2 deletions

View file

@ -144,7 +144,7 @@ func UAPIOpen(name string) (*os.File, error) {
// check if path exist
err := os.MkdirAll(socketDirectory, 0600)
err := os.MkdirAll(socketDirectory, 0700)
if err != nil && !os.IsExist(err) {
return nil, err
}

View file

@ -146,7 +146,7 @@ func UAPIOpen(name string) (*os.File, error) {
// check if path exist
err := os.MkdirAll(socketDirectory, 0600)
err := os.MkdirAll(socketDirectory, 0700)
if err != nil && !os.IsExist(err) {
return nil, err
}