projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
b254e32
)
Merge pull request #1695 from dibdot/regex-dhcphost
author
Jo-Philipp Wich
<jo@mein.io>
Thu, 22 Mar 2018 09:45:42 +0000
(10:45 +0100)
committer
GitHub
<noreply@github.com>
Thu, 22 Mar 2018 09:45:42 +0000
(10:45 +0100)
luci-base/util.lua: enhance checklib function
modules/luci-base/luasrc/util.lua
patch
|
blob
|
history
diff --git
a/modules/luci-base/luasrc/util.lua
b/modules/luci-base/luasrc/util.lua
index
0e7334b
..
28c1266
100644
(file)
--- a/
modules/luci-base/luasrc/util.lua
+++ b/
modules/luci-base/luasrc/util.lua
@@
-652,7
+652,8
@@
end
function checklib(fullpathexe, wantedlib)
local fs = require "nixio.fs"
local haveldd = fs.access('/usr/bin/ldd')
- if not haveldd then
+ local haveexe = fs.access(fullpathexe)
+ if not haveldd or not haveexe then
return false
end
local libs = exec("/usr/bin/ldd " .. fullpathexe)