projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove remaining references to boa and lucid
[project/luci.git]
/
libs
/
core
/
luasrc
/
ccache.lua
diff --git
a/libs/core/luasrc/ccache.lua
b/libs/core/luasrc/ccache.lua
index
c9771af
..
56ccbc3
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]
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)
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)
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
return loadfile(file)
end
end