From gael@voyager.abul.org  Sun Feb 27 20:27:27 2005
Return-Path: <gael@voyager.abul.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D60DE16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 Feb 2005 20:27:27 +0000 (GMT)
Received: from voyager.abul.org (voyager.abul.org [147.210.68.130])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3E39643D41
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 Feb 2005 20:27:27 +0000 (GMT)
	(envelope-from gael@voyager.abul.org)
Received: from voyager.abul.org (gael@localhost [127.0.0.1])
	by voyager.abul.org (8.12.9/8.12.9) with ESMTP id j1RKRIBP007506
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 Feb 2005 21:27:19 +0100 (CET)
Received: (from gael@localhost)
	by voyager.abul.org (8.12.9/8.12.9/Submit) id j1RKRFtZ010169
	for FreeBSD-gnats-submit@freebsd.org; Sun, 27 Feb 2005 21:27:15 +0100 (CET)
Message-Id: <20050227202714.GA11220@voyager.abul.org>
Date: Sun, 27 Feb 2005 21:27:14 +0100
From: Gael Queri <gael@lautre.net>
To: FreeBSD-gnats-submit@freebsd.org
Subject: typo in gzexe

>Number:         78161
>Category:       gnu
>Synopsis:       [patch] gzexe(1): typo in gzexe
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 27 20:30:13 GMT 2005
>Closed-Date:    Tue Jun 03 11:13:41 UTC 2008
>Last-Modified:  Tue Jun 03 11:13:41 UTC 2008
>Originator:     Gael Queri
>Release:        FreeBSD 5.4-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD blobby.home 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #2: Sat Feb 26 18:18:41 CET 2005 gael@blobby.home:/usr/src/sys/i386/compile/BLOBBY i386


	
>Description:
	

There is a missing semicolon on line 107 of
/usr/src/gnu/usr.bin/gzip/gzexe

    trap '/bin/rm -f $progtmp $gztmp exit $res' 0
                                    ^ there

This could potentially remove files called exit or <some number>.

>How-To-Repeat:
	
Hard to reproduce since it's only if the ln fails.
>Fix:

	
Simply correct the line to:

    trap '/bin/rm -f $progtmp $gztmp; exit $res ' 0


>Release-Note:
>Audit-Trail:
Adding to audit trail manually by linimon 20080125:
 
 This problem is still seen.  (confirmed by bugbuster brucec)

Adding to audit trail manually by gavin 20080126:

 This is only a problem on 5.x - 6.x and above use a BSD licensed gzip
 which is unaffected.

State-Changed-From-To: open->closed 
State-Changed-By: gavin 
State-Changed-When: Tue Jun 3 11:12:36 UTC 2008 
State-Changed-Why:  
This was fixed in 6.x and later by importing a new version of gzip. 
Thanks for your bug report! 

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