1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-08 21:51:28 +00:00

Zenmap: catch error when no temp directory is found. Fixes #639. Closes #640. Closes #641

This commit is contained in:
dmiller
2017-01-12 14:53:06 +00:00
parent 99de2621cd
commit 7760fdf7b4
2 changed files with 13 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
# Nmap Changelog ($Id$); -*-text-*- # Nmap Changelog ($Id$); -*-text-*-
o [Zenmap][GH#639] Zenmap will no longer crash when no suitable temporary
directory is found. Patches contributed by [Varunram Ganesh] and [Sai Sundhar]
o [Zenmap][GH#626] Zenmap now properly handles the -v0 (no output) option, o [Zenmap][GH#626] Zenmap now properly handles the -v0 (no output) option,
which was added in Nmap 7.10. Previously, this was treated the same as not which was added in Nmap 7.10. Previously, this was treated the same as not
specifying -v at all. [lymanZerga11] specifying -v at all. [lymanZerga11]

View File

@@ -535,7 +535,16 @@ class ScanInterface(HIGVBox):
"""Run the given Nmap command. Add it to the list of running scans. """Run the given Nmap command. Add it to the list of running scans.
Schedule a timer to refresh the output and check the scan for Schedule a timer to refresh the output and check the scan for
completion.""" completion."""
command_execution = NmapCommand(command) try:
command_execution = NmapCommand(command)
except IOError, e:
warn_dialog = HIGAlertDialog(
message_format=_("Error building command"),
secondary_text=_("Error message: %s") % str(e),
type=gtk.MESSAGE_ERROR)
warn_dialog.run()
warn_dialog.destroy()
return
command_execution.profile = profile command_execution.profile = profile
try: try: