Skip to content

Commit f5229cf

Browse files
committed
Refactor EnsureLogFilePath function in zaplogger_logpath.go to use more restrictive directory permissions
1 parent c658732 commit f5229cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logger/zaplogger_logpath.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func EnsureLogFilePath(logPath string) (string, error) {
3131

3232
// Ensure the directory exists
3333
dir := filepath.Dir(logPath)
34-
if err := os.MkdirAll(dir, 0755); err != nil {
34+
if err := os.MkdirAll(dir, 0750); err != nil {
3535
return "", err
3636
}
3737

0 commit comments

Comments
 (0)