Skip to content

Commit

Permalink
backport: fix: update azure-vnet directory permissions (#2819) (#2823)
Browse files Browse the repository at this point in the history
fix: update azure-vnet directory permissions (#2819)

update file lock directory permissions
  • Loading branch information
QxBytes authored Jul 2, 2024
1 parent ebda382 commit b079aee
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 b079aee

Please sign in to comment.