Skip to content

Commit f0a5ec8

Browse files
committed
use 0o700 for mkdir
1 parent 0c9858b commit f0a5ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func init() {
8080
uid = uuid.New()
8181
// if we fail to create the dir or write the file, just ignore the error
8282
// and use the fresh UUID
83-
if err = os.MkdirAll(filepath.Dir(fp), 0o600); err == nil {
83+
if err = os.MkdirAll(filepath.Dir(fp), 0o700); err == nil {
8484
if data, err = uid.MarshalBinary(); err == nil {
8585
os.WriteFile(fp, data, 0o600)
8686
}

0 commit comments

Comments
 (0)