Skip to content

Commit

Permalink
fix: update azure-vnet directory permissions (#2819)
Browse files Browse the repository at this point in the history
update file lock directory permissions
  • Loading branch information
QxBytes authored Jul 2, 2024
1 parent 626b05a commit fb2ec7a
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 fb2ec7a

Please sign in to comment.