mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Fix bug where Lua will load original, optional Lua libraries when we have
custom libraries that must be used instead. (So, try to load our libaries first, then look through system paths.) This bug is very rare since these optional libraries are very rarely installed in most distributions. Bug found by Onur K. [1]. [1] http://seclists.org/nmap-dev/2010/q1/197
This commit is contained in:
parent
929042a690
commit
b6d57382e3
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ local cnse, rules = ...; -- The NSE C library and Script Rules
|
|||
do -- Append the nselib directory to the Lua search path
|
||||
local t, path = assert(cnse.fetchfile_absolute("nselib/"));
|
||||
assert(t == "directory", "could not locate nselib directory!");
|
||||
package.path = package.path..";"..path.."?.lua";
|
||||
package.path = path.."?.lua;"..package.path;
|
||||
end
|
||||
|
||||
local stdnse = require "stdnse";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue