aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-08-13 14:31:54 +0800
committerkris <kris@FreeBSD.org>2000-08-13 14:31:54 +0800
commit14b89e157e2eea1173f7fd7e7385f13537b833ca (patch)
tree2ffb0275c96e1b23e32e84f9ca30ecfbb41c51e6 /net
parentdc6e66d5c37e18bab877ebbae524dd315be5fb25 (diff)
downloadfreebsd-ports-gnome-14b89e157e2eea1173f7fd7e7385f13537b833ca.tar.gz
freebsd-ports-gnome-14b89e157e2eea1173f7fd7e7385f13537b833ca.tar.zst
freebsd-ports-gnome-14b89e157e2eea1173f7fd7e7385f13537b833ca.zip
Disable -w (web) mode for security reasons.
Diffstat (limited to 'net')
-rw-r--r--net/ntop/files/patch-sec118
1 files changed, 18 insertions, 0 deletions
diff --git a/net/ntop/files/patch-sec1 b/net/ntop/files/patch-sec1
new file mode 100644
index 000000000000..a8bfdf73ef25
--- /dev/null
+++ b/net/ntop/files/patch-sec1
@@ -0,0 +1,18 @@
+--- ntop.c.orig Wed Apr 28 10:49:00 1999
++++ ntop.c Sat Aug 12 23:19:04 2000
+@@ -325,13 +325,8 @@
+ break;
+
+ case 'w':
+- if(!isdigit(optarg[0])) {
+- printf("FATAL ERROR: flag -w expects a numeric argument.\n");
+- exit(-1);
+- }
+- webMode++;
+- webPort = atoi(optarg);
+- break;
++ fprintf(stderr, "-w mode is disabled for security reasons.\n");
++ exit(-1);
+
+ default:
+ usage(0);