X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fluci-base%2Fluasrc%2Futil.lua;h=28c126621db99087b1bc65997c623cb304a7e234;hp=0e7334be87dc769c943ab5e464c52018c6bb928c;hb=9db5fa93afdbb4667e523cba0e6bde4e73a01150;hpb=c5287ef15fcc92e8c4a5f0b13051c6fd52aead07 diff --git a/modules/luci-base/luasrc/util.lua b/modules/luci-base/luasrc/util.lua index 0e7334be8..28c126621 100644 --- 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)