Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorDavid Arroyo <darroyo@constantcontact.com>2013-12-02 05:33:52 +0400
committerNoah Campbell <noahcampbell@gmail.com>2013-12-03 04:06:31 +0400
commit10c7cf29424b6c230ae9df14de41656e97ea85c8 (patch)
tree5ec1b1b74d8bd2d63b5720939687d70a11928c7a /target
parentba5dadff79be78517d6d6e0e7110bcea36620d20 (diff)
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>
Diffstat (limited to 'target')
-rw-r--r--target/file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/file.go b/target/file.go
index 0e48a93e5..f3d2b0b62 100644
--- a/target/file.go
+++ b/target/file.go
@@ -42,7 +42,7 @@ func writeToDisk(translated string, r io.Reader) (err error) {
ospath := filepath.FromSlash(path)
if ospath != "" {
- err = os.MkdirAll(ospath, 0764) // rwx, rw, r
+ err = os.MkdirAll(ospath, 0777) // rwx, rw, r
if err != nil {
panic(err)
}