Subject: bin/25509: Default behaviour difference between NetBSD gzip and GNU gzip when overwriting file
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <seb@netbsd.org>
List: netbsd-bugs
Date: 05/09/2004 12:28:56
>Number: 25509
>Category: bin
>Synopsis: Default behaviour difference between NetBSD gzip and GNU gzip when overwriting file
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun May 09 10:30:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Stoned Elipot
>Release: NetBSD 2.0E
>Organization:
>Environment:
System: NetBSD runabout 2.0E NetBSD 2.0E (RUNABOUT) #0: Fri May 7 21:02:16 CEST 2004 seb@runabout:/u/seb/src/RUNABOUT/kernel/compile i386
Architecture: i386
Machine: i386
>Description:
By default NetBSD gzip does not overwrite file when decompressing whereas
GNU gzip prompts what to do.
>How-To-Repeat:
$ echo foo | gzip -c > foo.gz
$ touch foo
$ /tmp/gnu-gzip -V
gnu-gzip 1.2.4 (18 Aug 93)
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H ASMV
$ /tmp/gnu-gzip -d foo.gz
gnu-gzip: foo already exists; do you wish to overwrite (y or n)? n
not overwritten
$ /usr/bin/gzip -V
NetBSD gzip 20040427
$ /usr/bin/gzip -d foo.gz
gzip: foo already exists -- skipping
$
>Fix:
None provided
>Release-Note:
>Audit-Trail:
>Unformatted: