1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-18 04:40:03 +02:00

internal/log/RotatingFile.go: directories should have 755 as unix permission bits.

This commit is contained in:
Henrik Hautakoski 2024-02-21 17:28:47 +01:00
parent 90b10f39ae
commit a66f1804da

View file

@ -25,7 +25,7 @@ func open(filename string) (*os.File, error) {
// Open a new rotating file.
func NewRotatingFile(filename string, opts ...RotatingFileOption) (*RotatingFile, error) {
if err := os.MkdirAll(path.Dir(filename), 0o766); err != nil && !os.IsExist(err) {
if err := os.MkdirAll(path.Dir(filename), 0o755); err != nil && !os.IsExist(err) {
return nil, err
}