ports/54482: Coding error in net/ntop
Melvyn Sopacua
melvyn at webteckies.org
Mon Jul 14 19:10:16 UTC 2003
>Number: 54482
>Category: ports
>Synopsis: Coding error in net/ntop
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Jul 14 12:10:13 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Melvyn Sopacua
>Release: FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD ghost.lan.webteckies.org 4.8-STABLE FreeBSD 4.8-STABLE #0: Sat Jul 5 18:39:46 CEST 2003 root at ghost.lan.webteckies.org:/usr/obj/usr/src/sys/GHOST i386
>Description:
Coding error in ntop/main.c prevents usage of 'ntop @filename'.
>How-To-Repeat:
Run latest ntop as 'ntop @filename'
>Fix:
Add files/patch-main.c:
--- main.c.orig Mon Jul 14 19:34:51 2003
+++ main.c Mon Jul 14 19:43:31 2003
@@ -757,7 +757,7 @@
if((argc == 2) && (argv[1][0] != '-')) {
/* Options specified on a configuration file */
- FILE *fd = fopen(argv[optind], "r");
+ FILE *fd = fopen(argv[optind] + 1, "r");
if(fd != NULL) {
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list