Skip to content

Commit 581139e

Browse files
authored
Merge pull request #390 from nan-yu/master
Grant read access for the error file to all users
2 parents 16c3bf7 + c05d17c commit 581139e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/git-sync/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ func (l *customLogger) writeContent(content []byte) {
259259
l.Logger.Error(err, "can't rename to error-file", "temp-file", tmpFile.Name(), "error-file", errorFile)
260260
return
261261
}
262+
if err := os.Chmod(errorFile, 0644) ; err != nil {
263+
l.Logger.Error(err, "can't change the mod of the error-file", "error-file", errorFile)
264+
}
262265
}
263266

264267
// deleteErrorFile deletes the error file.

0 commit comments

Comments
 (0)