From muk@bender.cl.msu.edu  Thu Mar  9 08:16:26 2000
Return-Path: <muk@bender.cl.msu.edu>
Received: from bender.cl.msu.edu (bender.cl.msu.edu [35.8.1.212])
	by hub.freebsd.org (Postfix) with ESMTP id 3F3A537B6A9
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  9 Mar 2000 08:16:26 -0800 (PST)
	(envelope-from muk@bender.cl.msu.edu)
Received: (from muk@localhost)
	by bender.cl.msu.edu (8.9.3/8.9.3) id LAA08668;
	Thu, 9 Mar 2000 11:19:13 -0500 (EST)
	(envelope-from muk)
Message-Id: <200003091619.LAA08668@bender.cl.msu.edu>
Date: Thu, 9 Mar 2000 11:19:13 -0500 (EST)
From: muk@bender.cl.msu.edu
Reply-To: muk@bender.cl.msu.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: sigrot broken
X-Send-Pr-Version: 3.2

>Number:         17281
>Category:       ports
>Synopsis:       sigrot broken -here's the patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar  9 08:20:01 PST 2000
>Closed-Date:    Sat Apr 1 17:19:19 PST 2000
>Last-Modified:  Sat Apr  1 17:19:54 PST 2000
>Originator:     Matthew A. Kolb
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
Michigan State University
>Environment:
	output of uname -a:
	FreeBSD bender.cl.msu.edu 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Wed Feb 23 08:35:07 EST 2000     muk@bender.cl.msu.edu:/usr/src/sys/compile/KIF  i386
	Ports cvsup'd at 5:00am 03/09/2000


>Description:

	/usr/ports/mail/sigrot will compile, but will segfault if run with no arguments. 
>How-To-Repeat:

	make sigrot, run sigrot -w testfile, then run sigrot. It will segfault with no arguments. the expected behavior is to copy an entry from the sigrot_archive file into ~/.signature

>Fix:

	apply the following patch to sigrot.c:
	170c170
	<   else
	---
	>   else {
	172c172,173
	<   fclose(inFile);
	---
	>     fclose(inFile);
	>   }

>Release-Note:
>Audit-Trail:

From: Will Andrews <andrews@technologist.com>
To: muk@bender.cl.msu.edu
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: ports/17281: sigrot broken
Date: Thu, 9 Mar 2000 12:35:56 -0500

 On Thu, Mar 09, 2000 at 11:19:13AM -0500, muk@bender.cl.msu.edu wrote:
 > 	apply the following patch to sigrot.c:
 > 	170c170
 > 	<   else
 > 	---
 > 	>   else {
 > 	172c172,173
 > 	<   fclose(inFile);
 > 	---
 > 	>     fclose(inFile);
 > 	>   }
 
 I believe the ports standard is diff -u.
 
 -- 
 Will Andrews <andrews@technologist.com>
 GCS/E/S @d- s+:+>+:- a--->+++ C++ UB++++ P+ L- E--- W+++ !N !o ?K w---
 ?O M+ V-- PS+ PE++ Y+ PGP+>+++ t++ 5 X++ R+ tv+ b++>++++ DI+++ D+ 
 G++>+++ e->++++ h! r-->+++ y?
 
State-Changed-From-To: open->closed 
State-Changed-By: mharo 
State-Changed-When: Sat Apr 1 17:19:19 PST 2000 
State-Changed-Why:  
A patch has been added to this port. 
Thanks. 
>Unformatted:
