1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00

Fixed leading backslash appearing in script filenames after running

--script-updatedb which caused an error when choosing which scripts to be run.
See: http://seclists.org/nmap-dev/2009/q2/0266.html
This commit is contained in:
jah
2009-04-29 23:51:28 +00:00
parent 22a77a865c
commit 6b1421db69

View File

@@ -333,7 +333,7 @@ int script_updatedb (void)
" local categories = rawget(env, 'categories')\n"
" assert(type(categories) == 'table', script.."
" ' categories field is not a table')\n"
" local basename = assert(match(script, '[/\\]?([^/\\]-%.nse)$'))\n"
" local basename = assert(match(script, '[/\\\\]?([^/\\\\]-%.nse)$'))\n"
" table.sort(categories)\n"
" for j, category in ipairs(categories) do\n"
" db:write('Entry { category = \"', lower(category),"