Use the relative path to nmap

git-svn-id: file:///home/svn/framework3/trunk@7381 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-11-06 17:15:26 +00:00
parent 1c51182b39
commit 55b5b828f2
1 changed files with 1 additions and 3 deletions

View File

@ -651,9 +651,7 @@ class Db
args.push('-oX', fd.path)
end
args.unshift(nmap)
cmd = args.map{|x| "'#{x}'"}.join(" ")
cmd = "nmap " + args.map{|x| "'#{x}'"}.join(" ")
print_status("exec: #{cmd}")
IO.popen( cmd, 'rb' ) do |io|