mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-07 05:36:26 +00:00
Create directories in publishdir with mode 0777.
The previous permissions (0764), were unusable (directories must be executable) when generating files for use by another uid. The Right Thing™ is to use mode 0777. The OS will subtract the process umask (usually 022) to the for the final permissions. Signed-off-by: Noah Campbell <noahcampbell@gmail.com>
This commit is contained in:
parent
ba5dadff79
commit
10c7cf2942
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ func writeToDisk(translated string, r io.Reader) (err error) {
|
||||||
ospath := filepath.FromSlash(path)
|
ospath := filepath.FromSlash(path)
|
||||||
|
|
||||||
if ospath != "" {
|
if ospath != "" {
|
||||||
err = os.MkdirAll(ospath, 0764) // rwx, rw, r
|
err = os.MkdirAll(ospath, 0777) // rwx, rw, r
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue