diff --git a/utils/errlock/errlock.go b/utils/errlock/errlock.go index fc9699352..946bf00d9 100644 --- a/utils/errlock/errlock.go +++ b/utils/errlock/errlock.go @@ -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 }