mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 20:00:55 +00:00
Change permission mask
This commit is contained in:
parent
8f3d1c5f42
commit
f99cbe0fa4
@ -138,7 +138,7 @@ func (fp *FileProvider) SessionRead(sid string) (Store, error) {
|
|||||||
filepder.lock.Lock()
|
filepder.lock.Lock()
|
||||||
defer filepder.lock.Unlock()
|
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 {
|
if err != nil {
|
||||||
SLogger.Println(err.Error())
|
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)
|
return nil, fmt.Errorf("newsid %s exist", newSidFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = os.MkdirAll(newPath, 0777)
|
err = os.MkdirAll(newPath, 0755)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
SLogger.Println(err.Error())
|
SLogger.Println(err.Error())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user