Expand cygwin to win32 path for db_nmap on windows inside of cygwin
git-svn-id: file:///home/svn/framework3/trunk@7002 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
402608ec6f
commit
e7b200bc23
|
@ -507,8 +507,12 @@ class Db
|
|||
|
||||
fd = Tempfile.new('dbnmap')
|
||||
|
||||
if(Rex::Compat.is_cygwin)
|
||||
args.push(IO.popen("cygpath -aw #{fd.path}").read.strip)
|
||||
else
|
||||
args.push('-oX', fd.path)
|
||||
end
|
||||
|
||||
args.push('-oX', fd.path)
|
||||
args.unshift(nmap)
|
||||
|
||||
cmd = args.map{|x| '"'+x+'"'}.join(" ")
|
||||
|
|
Loading…
Reference in New Issue