Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Feb 2005 21:27:14 +0100
From:      Gael Queri <gael@lautre.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   gnu/78161: typo in gzexe
Message-ID:  <20050227202714.GA11220@voyager.abul.org>
Resent-Message-ID: <200502272030.j1RKUEqP055544@freefall.freebsd.org>

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

>Number:         78161
>Category:       gnu
>Synopsis:       typo in gzexe
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 27 20:30:13 GMT 2005
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
 non-critical
 medium
 sw-bug



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