Skip to content

Commit

Permalink
end2end: reduce permissions for file
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajdab authored and p4u committed Sep 4, 2023
1 parent b787fde commit 79abb9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func Init(level, output string, errorOutput io.Writer) {
case logTestWriterName:
out = logTestWriter
default:
f, err := os.OpenFile(output, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0o644)
f, err := os.OpenFile(output, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0600)
if err != nil {
panic(fmt.Sprintf("cannot create log output: %v", err))
}
Expand Down

0 comments on commit 79abb9c

Please sign in to comment.