From f99cbe0fa40936f2f8dd28e70620c559b6e5e2fd Mon Sep 17 00:00:00 2001 From: Nico Waisman Date: Wed, 22 Apr 2020 08:42:54 -0700 Subject: [PATCH] Change permission mask --- session/sess_file.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/session/sess_file.go b/session/sess_file.go index db143522..9f8ccaed 100644 --- a/session/sess_file.go +++ b/session/sess_file.go @@ -138,7 +138,7 @@ func (fp *FileProvider) SessionRead(sid string) (Store, error) { filepder.lock.Lock() defer filepder.lock.Unlock() - err := os.MkdirAll(path.Join(fp.savePath, string(sid[0]), string(sid[1])), 0777) + err := os.MkdirAll(path.Join(fp.savePath, string(sid[0]), string(sid[1])), 0755) if err != nil { SLogger.Println(err.Error()) } @@ -231,7 +231,7 @@ func (fp *FileProvider) SessionRegenerate(oldsid, sid string) (Store, error) { return nil, fmt.Errorf("newsid %s exist", newSidFile) } - err = os.MkdirAll(newPath, 0777) + err = os.MkdirAll(newPath, 0755) if err != nil { SLogger.Println(err.Error()) }