Skip to content

Commit

Permalink
newFileSink: use normatve 0666 default perm to OpenFile (uber-go#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorbin committed Sep 1, 2020
1 parent c665bba commit 389f095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sink.go
Expand Up @@ -136,7 +136,7 @@ func newFileSink(u *url.URL) (Sink, error) {
case "stderr":
return nopCloserSink{os.Stderr}, nil
}
return os.OpenFile(u.Path, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0644)
return os.OpenFile(u.Path, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0666)
}

func normalizeScheme(s string) (string, error) {
Expand Down

0 comments on commit 389f095

Please sign in to comment.