projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdce917
)
Fixed last commit
author
Steven Barth
<steven@midlink.org>
Mon, 11 Aug 2008 10:51:02 +0000
(10:51 +0000)
committer
Steven Barth
<steven@midlink.org>
Mon, 11 Aug 2008 10:51:02 +0000
(10:51 +0000)
libs/web/luasrc/sauth.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/sauth.lua
b/libs/web/luasrc/sauth.lua
index c43117f3ae50ec4952a289e5403e4089f48ce571..7c483119cae14e9884349e5ba1c6b02e3945067c 100644
(file)
--- a/
libs/web/luasrc/sauth.lua
+++ b/
libs/web/luasrc/sauth.lua
@@
-46,7
+46,9
@@
end
--- Prepare session storage by creating the session directory.
function prepare()
luci.fs.mkdir(sessionpath)
- if not luci.fs.chmod(sessionpath, "a-rwx,u+rwx") then
+ luci.fs.chmod(sessionpath, "a-rwx,u+rwx")
+
+ if not sane() then
error("Security Exception: Session path is not sane!")
end
end