openbsd-ports/net/ntop/patches/patch-ntop.c
brad 7b9088a4e0 - add patch to disable -w option
- tighten file perms so only root can run this and minus setuid/setgid
--
From: FreeBSD
2000-08-15 19:30:31 +00:00

19 lines
431 B
C

--- ntop.c.orig Tue Aug 15 15:12:47 2000
+++ ntop.c Tue Aug 15 15:13:47 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);