projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
839dcdc
)
luci-0.11: merge r9560
author
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 19 Dec 2012 00:37:39 +0000
(
00:37
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 19 Dec 2012 00:37:39 +0000
(
00:37
+0000)
libs/core/luasrc/ccache.lua
patch
|
blob
|
history
diff --git
a/libs/core/luasrc/ccache.lua
b/libs/core/luasrc/ccache.lua
index c9771af216b4af3de0a02ef775f64b431c64db75..56ccbc3efe30a85bfb15544818ad0d49a0ad840f 100644
(file)
--- a/
libs/core/luasrc/ccache.lua
+++ b/
libs/core/luasrc/ccache.lua
@@
-37,7
+37,7
@@
function cache_enable(cachepath, mode)
mode = mode or "r--r--r--"
local loader = package.loaders[2]
- local uid = nixio.get
pid("uid"
)
+ local uid = nixio.get
uid(
)
if not fs.stat(cachepath) then
fs.mkdir(cachepath)
@@
-53,7
+53,7
@@
function cache_enable(cachepath, mode)
local function _load_sane(file)
local stat = fs.stat(file)
- if stat and stat.uid == uid and stat.mode == mode then
+ if stat and stat.uid == uid and stat.mode
str
== mode then
return loadfile(file)
end
end