1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-06 22:51:41 +00:00
freebsd-ports/security/zenmap/files/patch-ac
David E. O'Brien 1cb3956451 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 <andre.albsmeier@mchp.siemens.de>
1999-07-23 18:21:54 +00:00

22 lines
594 B
Plaintext

--- 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 */