From 1cb395645160a443ddbb73c0cbddb1bd2e9e8fce Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Fri, 23 Jul 1999 18:21:54 +0000 Subject: Hard code the path to nmap w/in nmapfe. Thus it will work in the face of a limited path. Bug reported by: Andre Albsmeier --- security/nmapfe/files/patch-ac | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 security/nmapfe/files/patch-ac (limited to 'security/nmapfe/files/patch-ac') diff --git a/security/nmapfe/files/patch-ac b/security/nmapfe/files/patch-ac new file mode 100644 index 000000000000..df3c849ceb82 --- /dev/null +++ b/security/nmapfe/files/patch-ac @@ -0,0 +1,21 @@ +--- nmapfe/nmapfe_sig.c.orig Fri May 7 04:51:52 1999 ++++ nmapfe/nmapfe_sig.c Fri Jul 23 11:09:45 1999 +@@ -171,7 +171,7 @@ + on_Get_Nmap_Version_activate (GtkMenuItem *menuitem, + gpointer user_data) + { +- execute("nmap -V"); ++ execute( NMAP_PATH "nmap -V"); + } + + +@@ -296,7 +296,8 @@ + if (size > command_size) + command = realloc(command, size); + +- strcpy(command, "nmap "); ++ strcpy(command, NMAP_PATH); ++ strcat(command, "nmap "); + /*Uhm... yeah.. Spit out which scan to perform based + on the which_scan variable */ + -- cgit v1.2.3