From 10c7cf29424b6c230ae9df14de41656e97ea85c8 Mon Sep 17 00:00:00 2001 From: David Arroyo Date: Sun, 1 Dec 2013 20:33:52 -0500 Subject: [PATCH] Create directories in publishdir with mode 0777. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- target/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }