summaryrefslogtreecommitdiffhomepage
path: root/libs/core/luasrc
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-29 14:43:06 +0000
committerSteven Barth <steven@midlink.org>2008-06-29 14:43:06 +0000
commitb8240f3516945b5969bfcfeb1fcc057759f5dd4b (patch)
tree75bc66ea10609d4b11981d8ab88e2c335e7357a6 /libs/core/luasrc
parentee324cb3a70d39dc9522a1ee63af12137d433533 (diff)
* libs/web: Added Logout support
* libs/web: Fixed a bug with an invalid calling convention in luci.dispatcher * libs/sys: Fixed rudimentary posix.crypt detection
Diffstat (limited to 'libs/core/luasrc')
-rw-r--r--libs/core/luasrc/sys.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/core/luasrc/sys.lua b/libs/core/luasrc/sys.lua
index c5c471a75..e5f19f20b 100644
--- a/libs/core/luasrc/sys.lua
+++ b/libs/core/luasrc/sys.lua
@@ -289,7 +289,7 @@ function user.checkpasswd(username, password)
local account = user.getuser(username)
-- FIXME: detect testing environment
- if luci.fs.isfile("/etc/shadow") and not luci.fs.access("/etc/shadow", "r") then
+ if luci.fs.stat("/etc/shadow") and not luci.fs.access("/etc/shadow", "r") then
return true
elseif account then
if account.passwd == "!" then