mirror of
https://github.com/gohugoio/hugo.git
synced 2025-01-14 23:04:13 +00:00
helpers: Fix permissions when creating new folders
This was mistakingly changed from 07777 (rwx, rw, r before umask) to 0755 in Hugo 0.37. This commit reverts to the old value. Fixes #5128
This commit is contained in:
parent
ebb56e8bdb
commit
f4675fa0f0
1 changed files with 1 additions and 1 deletions
|
@ -573,7 +573,7 @@ func OpenFileForWriting(fs afero.Fs, filename string) (afero.File, error) {
|
|||
if !os.IsNotExist(err) {
|
||||
return nil, err
|
||||
}
|
||||
if err = fs.MkdirAll(filepath.Dir(filename), 0755); err != nil {
|
||||
if err = fs.MkdirAll(filepath.Dir(filename), 0777); err != nil { // rwx, rw, r before umask
|
||||
return nil, err
|
||||
}
|
||||
f, err = fs.Create(filename)
|
||||
|
|
Loading…
Reference in a new issue