From nobody@FreeBSD.org  Fri Jul 23 08:47:35 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 15391106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Jul 2010 08:47:35 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 045F18FC21
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Jul 2010 08:47:35 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o6N8lYMT025295
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Jul 2010 08:47:34 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o6N8lYj7025294;
	Fri, 23 Jul 2010 08:47:34 GMT
	(envelope-from nobody)
Message-Id: <201007230847.o6N8lYj7025294@www.freebsd.org>
Date: Fri, 23 Jul 2010 08:47:34 GMT
From: Artem Naluzhnyy <tut@nhamon.com.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] security/chaosreader: fix "devision by zero" error
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: pauls@utdallas.edu

>Number:         148858
>Category:       ports
>Synopsis:       [PATCH] security/chaosreader: fix "devision by zero" error
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 23 08:50:03 UTC 2010
>Closed-Date:    Wed Jul 28 15:23:47 UTC 2010
>Last-Modified:  Wed Jul 28 15:30:02 UTC 2010
>Originator:     Artem Naluzhnyy
>Release:        
>Organization:
>Environment:
>Description:
See also http://sourceforge.net/tracker/?func=detail&aid=2210488&group_id=107384&atid=647489
>How-To-Repeat:

>Fix:
diff -ruN chaosreader.bak/Makefile chaosreader/Makefile
--- chaosreader.bak/Makefile	2009-09-03 02:59:45.000000000 +0300
+++ chaosreader/Makefile	2010-07-23 11:38:48.000000000 +0300
@@ -7,10 +7,12 @@
 
 PORTNAME=	chaosreader
 PORTVERSION=	0.94
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	SF
 DISTFILES=	${PORTNAME}${PORTVERSION} sshkeydata0.20
 EXTRACT_ONLY=
+NO_WRKSUBDIR=	yes
 
 MAINTAINER=	pauls@utdallas.edu
 COMMENT=	A tool to extract data from tcpdump logs
diff -ruN chaosreader.bak/files/patch-chaosreader chaosreader/files/patch-chaosreader
--- chaosreader.bak/files/patch-chaosreader	1970-01-01 02:00:00.000000000 +0200
+++ chaosreader/files/patch-chaosreader	2010-07-23 11:22:10.000000000 +0300
@@ -0,0 +1,15 @@
+--- chaosreader.orig	2010-07-23 11:18:46.000000000 +0300
++++ chaosreader	2010-07-23 11:21:34.000000000 +0300
+@@ -4028,7 +4028,11 @@
+ 	   ### This causes the replay program to pause
+ 	   print REPLAY "ms($timediff1);\n";
+ 	}
+-	$speed = sprintf("%.2f",$bytes / (1024 * $duration));
++	if ( $duration > 0 ) {
++		$speed = sprintf("%.2f",$bytes / (1024 * $duration));
++	} else {
++		$speed = "unknown";
++	}
+ 	print REPLAY "print \"\n\n" .
+ 	 "Summary: $duration2 seconds, $bytes bytes, $speed Kb/sec\\n\";";
+ 	close REPLAY;


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Fri Jul 23 08:50:12 UTC 2010 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148858 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: pauls@utdallas.edu
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/148858: [PATCH] security/chaosreader: fix "devision by zero" error
Date: Fri, 23 Jul 2010 08:50:10 UT

 Maintainer of security/chaosreader,
 
 Please note that PR ports/148858 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/148858
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Paul Schmehl <pauls@utdallas.edu>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/148858: [PATCH] security/chaosreader: fix "devision by zero"
 error
Date: Fri, 23 Jul 2010 09:40:06 -0500

 --On Friday, July 23, 2010 03:50:10 -0500 Edwin Groothuis <edwin@FreeBSD.org> 
 wrote:
 
 > Maintainer of security/chaosreader,
 >
 > Please note that PR ports/148858 has just been submitted.
 >
 > If it contains a patch for an upgrade, an enhancement or a bug fix
 > you agree on, reply to this email stating that you approve the patch
 > and a committer will take care of it.
 >
 > The full text of the PR can be found at:
 >     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/148858
 
 I approve.
 
 -- 
 Paul Schmehl (pauls@utdallas.edu)
 Senior Information Security Analyst
 The University of Texas at Dallas
 http://www.utdallas.edu/ir/security/
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Fri Jul 23 21:41:47 UTC 2010 
State-Changed-Why:  
Maintainer approved. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148858 
State-Changed-From-To: open->closed 
State-Changed-By: arved 
State-Changed-When: Wed Jul 28 15:23:39 UTC 2010 
State-Changed-Why:  
committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148858 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/148858: commit references a PR
Date: Wed, 28 Jul 2010 15:23:33 +0000 (UTC)

 arved       2010-07-28 15:23:24 UTC
 
   FreeBSD ports repository
 
   Modified files:
     security/chaosreader Makefile 
   Added files:
     security/chaosreader/files patch-chaosreader 
   Log:
   Fix a division by zero bug.
   Bump PORTREVISION
   
   PR:             148858
   Submitted by:   Artem Naluzhnyy <tut@nhamon.com.ua>
   Approved by:    maintainer
   
   Revision  Changes    Path
   1.3       +2 -0      ports/security/chaosreader/Makefile
   1.1       +15 -0     ports/security/chaosreader/files/patch-chaosreader (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
