Skip to content

Commit 9bcb554

Browse files
committed
update file lock directory permissions
1 parent 85acdca commit 9bcb554

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

processlock/processlock.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ func NewFileLock(fileAbsPath string) (Interface, error) {
3232
return nil, ErrEmptyFilePath
3333
}
3434

35-
//nolint:gomnd //0o664 - permission to create directory in octal
36-
err := os.MkdirAll(filepath.Dir(fileAbsPath), os.FileMode(0o664))
35+
//nolint:gomnd //0o777 - permission to create directory in octal (becomes 0755 after umask applied)
36+
err := os.MkdirAll(filepath.Dir(fileAbsPath), os.FileMode(0o777))
3737
if err != nil {
3838
return nil, errors.Wrap(err, "mkdir lock dir returned error")
3939
}

0 commit comments

Comments
 (0)