Skip to content

Commit

Permalink
Restrict access to errlock file
Browse files Browse the repository at this point in the history
  • Loading branch information
HerbertJordan committed Dec 12, 2024
1 parent 1c1288e commit 283de4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/errlock/errlock.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ func read(dir string) (bool, string, string, error) {
func write(dir string, eLockStr string) (string, error) {
eLockPath := path.Join(dir, "errlock")

return eLockPath, os.WriteFile(eLockPath, []byte(eLockStr), 0666) // assume no custom encoding needed
return eLockPath, os.WriteFile(eLockPath, []byte(eLockStr), 0600) // assume no custom encoding needed
}

0 comments on commit 283de4c

Please sign in to comment.