7b9088a4e0
- tighten file perms so only root can run this and minus setuid/setgid -- From: FreeBSD
19 lines
431 B
C
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);
|