From mdev@webteckies.org  Mon Jul 14 12:08:11 2003
Return-Path: <mdev@webteckies.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4136A37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 14 Jul 2003 12:08:11 -0700 (PDT)
Received: from ghost.lan.webteckies.org (node123e0.a2000.nl [24.132.35.224])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 908EC43FA3
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 14 Jul 2003 12:08:10 -0700 (PDT)
	(envelope-from mdev@webteckies.org)
Received: by ghost.lan.webteckies.org (Postfix, from userid 102)
	id D807A21BB8; Mon, 14 Jul 2003 21:08:09 +0200 (CEST)
Message-Id: <20030714190809.D807A21BB8@ghost.lan.webteckies.org>
Date: Mon, 14 Jul 2003 21:08:09 +0200 (CEST)
From: Melvyn Sopacua <melvyn@webteckies.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Coding error in net/ntop
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         54482
>Category:       ports
>Synopsis:       Coding error in net/ntop
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 14 12:10:13 PDT 2003
>Closed-Date:    Tue Jul 22 08:49:44 PDT 2003
>Last-Modified:  Tue Jul 22 08:49:44 PDT 2003
>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:
State-Changed-From-To: open->closed 
State-Changed-By: arved 
State-Changed-When: Tue Jul 22 08:49:39 PDT 2003 
State-Changed-Why:  
committed, thanks 

http://www.freebsd.org/cgi/query-pr.cgi?pr=54482 
>Unformatted:
