Skip to content

Commit

Permalink
update file lock directory permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
QxBytes committed Jun 26, 2024
1 parent 85acdca commit 71af463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions processlock/processlock.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func NewFileLock(fileAbsPath string) (Interface, error) {
return nil, ErrEmptyFilePath
}

//nolint:gomnd //0o664 - permission to create directory in octal
err := os.MkdirAll(filepath.Dir(fileAbsPath), os.FileMode(0o664))
//nolint:gomnd //0o755 - permission to create directory in octal
err := os.MkdirAll(filepath.Dir(fileAbsPath), os.FileMode(0o755))
if err != nil {
return nil, errors.Wrap(err, "mkdir lock dir returned error")
}
Expand Down

0 comments on commit 71af463

Please sign in to comment.