Expand to a windows path if the exe is outside of the cygwin installation
git-svn-id: file:///home/svn/framework3/trunk@7375 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
48fb445609
commit
4fde76e8f6
|
@ -641,7 +641,7 @@ class Db
|
||||||
fd = Tempfile.new('dbnmap')
|
fd = Tempfile.new('dbnmap')
|
||||||
|
|
||||||
# When executing native Nmap, expand the Cygwin path to a Win32 path
|
# When executing native Nmap, expand the Cygwin path to a Win32 path
|
||||||
if(Rex::Compat.is_cygwin and nmap[0,1] != "/")
|
if(Rex::Compat.is_cygwin and nmap =~ /^cygdrive/)
|
||||||
args.push('-oX', IO.popen("cygpath -aw #{fd.path}").read.strip)
|
args.push('-oX', IO.popen("cygpath -aw #{fd.path}").read.strip)
|
||||||
else
|
else
|
||||||
args.push('-oX', fd.path)
|
args.push('-oX', fd.path)
|
||||||
|
@ -1211,3 +1211,4 @@ end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue