Fixed last commit
authorSteven Barth <steven@midlink.org>
Mon, 11 Aug 2008 10:51:02 +0000 (10:51 +0000)
committerSteven Barth <steven@midlink.org>
Mon, 11 Aug 2008 10:51:02 +0000 (10:51 +0000)
libs/web/luasrc/sauth.lua

index c43117f..7c48311 100644 (file)
@@ -46,7 +46,9 @@ end
 --- Prepare session storage by creating the session directory.
 function prepare()
        luci.fs.mkdir(sessionpath)
 --- 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
                error("Security Exception: Session path is not sane!")
        end
 end