Move th fd.unlink for the db_nmap command
git-svn-id: file:///home/svn/framework3/trunk@5686 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
e6254d42ce
commit
c9bb1bbcd0
|
@ -407,7 +407,7 @@ module Db
|
|||
end
|
||||
|
||||
fd = Tempfile.new('dbnmap')
|
||||
fd.close
|
||||
|
||||
|
||||
args.push('-oX', fd.path)
|
||||
args.unshift(nmap)
|
||||
|
@ -425,6 +425,8 @@ module Db
|
|||
|
||||
File.unlink(fd.path)
|
||||
|
||||
fd.close
|
||||
|
||||
load_nmap_xml(data)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue