summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-07-23 18:21:54 +0000
committerobrien <obrien@FreeBSD.org>1999-07-23 18:21:54 +0000
commit56b0179de1937f0042e6dece0221a4a8f992a46d (patch)
treedc4688864299462e020c8f5cce0ef0fc70cd17f3 /security
parentbd6b869900fff6875bb83290cc1bb030052003e8 (diff)
downloadFreeBSD-ports-56b0179de1937f0042e6dece0221a4a8f992a46d.zip
FreeBSD-ports-56b0179de1937f0042e6dece0221a4a8f992a46d.tar.gz
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>
Diffstat (limited to 'security')
-rw-r--r--security/nmap/files/patch-ab25
-rw-r--r--security/nmap/files/patch-ac21
-rw-r--r--security/nmapfe/files/patch-ab25
-rw-r--r--security/nmapfe/files/patch-ac21
-rw-r--r--security/zenmap/files/patch-ab25
-rw-r--r--security/zenmap/files/patch-ac21
6 files changed, 138 insertions, 0 deletions
diff --git a/security/nmap/files/patch-ab b/security/nmap/files/patch-ab
new file mode 100644
index 0000000..7fba9fd
--- /dev/null
+++ b/security/nmap/files/patch-ab
@@ -0,0 +1,25 @@
+--- nmapfe/Makefile.in.orig Fri May 7 04:51:52 1999
++++ nmapfe/Makefile.in Fri Jul 23 10:46:08 1999
+@@ -71,7 +71,7 @@
+ PROGRAMS = $(bin_PROGRAMS)
+
+
+-DEFS = @DEFS@ -I. -I$(srcdir)
++DEFS = @DEFS@ -DNMAP_PATH=\"$(bindir)/\" -I. -I$(srcdir)
+ CPPFLAGS = @CPPFLAGS@
+ STATIC =
+ LDFLAGS = @LDFLAGS@ $(STATIC)
+@@ -231,11 +231,11 @@
+ maintainer-clean-depend:
+ -rm -rf .deps
+
+-%.o: %.c
++.c.o:
+ @echo '$(COMPILE) -c $<'; \
+ $(COMPILE) -c $<
+
+-%.lo: %.c
++.c.lo:
+ @echo '$(LTCOMPILE) -c $<'; \
+ $(LTCOMPILE) -c $<
+ @-sed -e 's/^\([^:]*\)\.o:/\1.lo \1.o:/' \
diff --git a/security/nmap/files/patch-ac b/security/nmap/files/patch-ac
new file mode 100644
index 0000000..df3c849
--- /dev/null
+++ b/security/nmap/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 */
+
diff --git a/security/nmapfe/files/patch-ab b/security/nmapfe/files/patch-ab
new file mode 100644
index 0000000..7fba9fd
--- /dev/null
+++ b/security/nmapfe/files/patch-ab
@@ -0,0 +1,25 @@
+--- nmapfe/Makefile.in.orig Fri May 7 04:51:52 1999
++++ nmapfe/Makefile.in Fri Jul 23 10:46:08 1999
+@@ -71,7 +71,7 @@
+ PROGRAMS = $(bin_PROGRAMS)
+
+
+-DEFS = @DEFS@ -I. -I$(srcdir)
++DEFS = @DEFS@ -DNMAP_PATH=\"$(bindir)/\" -I. -I$(srcdir)
+ CPPFLAGS = @CPPFLAGS@
+ STATIC =
+ LDFLAGS = @LDFLAGS@ $(STATIC)
+@@ -231,11 +231,11 @@
+ maintainer-clean-depend:
+ -rm -rf .deps
+
+-%.o: %.c
++.c.o:
+ @echo '$(COMPILE) -c $<'; \
+ $(COMPILE) -c $<
+
+-%.lo: %.c
++.c.lo:
+ @echo '$(LTCOMPILE) -c $<'; \
+ $(LTCOMPILE) -c $<
+ @-sed -e 's/^\([^:]*\)\.o:/\1.lo \1.o:/' \
diff --git a/security/nmapfe/files/patch-ac b/security/nmapfe/files/patch-ac
new file mode 100644
index 0000000..df3c849
--- /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 */
+
diff --git a/security/zenmap/files/patch-ab b/security/zenmap/files/patch-ab
new file mode 100644
index 0000000..7fba9fd
--- /dev/null
+++ b/security/zenmap/files/patch-ab
@@ -0,0 +1,25 @@
+--- nmapfe/Makefile.in.orig Fri May 7 04:51:52 1999
++++ nmapfe/Makefile.in Fri Jul 23 10:46:08 1999
+@@ -71,7 +71,7 @@
+ PROGRAMS = $(bin_PROGRAMS)
+
+
+-DEFS = @DEFS@ -I. -I$(srcdir)
++DEFS = @DEFS@ -DNMAP_PATH=\"$(bindir)/\" -I. -I$(srcdir)
+ CPPFLAGS = @CPPFLAGS@
+ STATIC =
+ LDFLAGS = @LDFLAGS@ $(STATIC)
+@@ -231,11 +231,11 @@
+ maintainer-clean-depend:
+ -rm -rf .deps
+
+-%.o: %.c
++.c.o:
+ @echo '$(COMPILE) -c $<'; \
+ $(COMPILE) -c $<
+
+-%.lo: %.c
++.c.lo:
+ @echo '$(LTCOMPILE) -c $<'; \
+ $(LTCOMPILE) -c $<
+ @-sed -e 's/^\([^:]*\)\.o:/\1.lo \1.o:/' \
diff --git a/security/zenmap/files/patch-ac b/security/zenmap/files/patch-ac
new file mode 100644
index 0000000..df3c849
--- /dev/null
+++ b/security/zenmap/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 */
+
OpenPOWER on IntegriCloud