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:
parent
90b10f39ae
commit
a66f1804da
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue