Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jul 2003 21:08:09 +0200 (CEST)
From:      Melvyn Sopacua <melvyn@webteckies.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/54482: Coding error in net/ntop
Message-ID:  <20030714190809.D807A21BB8@ghost.lan.webteckies.org>
Resent-Message-ID: <200307141910.h6EJAEw2095631@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030714190809.D807A21BB8>