From a07b08dae50ab2cdf072b5583040dd47fc5d6ad9 Mon Sep 17 00:00:00 2001 From: Vladyslav Tokarchuk Date: Wed, 27 Jun 2018 14:27:41 +0300 Subject: [PATCH] fix: directory "others" execute permission, close #300 --- http/resource.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http/resource.go b/http/resource.go index ce405c9e..df776dcc 100644 --- a/http/resource.go +++ b/http/resource.go @@ -182,7 +182,7 @@ func resourcePostPutHandler(c *fb.Context, w http.ResponseWriter, r *http.Reques } // Otherwise we try to create the directory. - err := c.User.FileSystem.Mkdir(r.URL.Path, 0776) + err := c.User.FileSystem.Mkdir(r.URL.Path, 0775) return ErrorToHTTP(err, false), err } @@ -201,7 +201,7 @@ func resourcePostPutHandler(c *fb.Context, w http.ResponseWriter, r *http.Reques } // Create/Open the file. - f, err := c.User.FileSystem.OpenFile(r.URL.Path, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0776) + f, err := c.User.FileSystem.OpenFile(r.URL.Path, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0775) if err != nil { return ErrorToHTTP(err, false), err }