Move th fd.unlink for the db_nmap command

git-svn-id: file:///home/svn/framework3/trunk@5686 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2008-09-26 05:01:18 +00:00
parent e6254d42ce
commit c9bb1bbcd0
1 changed files with 3 additions and 1 deletions

View File

@ -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