Subject: bin/26251: gzip -f behaves differently from gnu gzip
To: None <gnats-bugs@gnats.NetBSD.org>
From: Mark Davies <mark@mcs.vuw.ac.nz>
List: netbsd-bugs
Date: 07/12/2004 10:16:43
>Number: 26251
>Category: bin
>Synopsis: gzip -f behaves differently from gnu gzip
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jul 11 22:17:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Mark Davies
>Release: NetBSD 2.0F
>Organization:
Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
>Environment:
System: NetBSD city-art.mcs.vuw.ac.nz 2.0F NetBSD 2.0F (MCS_WORKSTATION) #3: Fri Jul 9 12:51:39 NZST 2004 mark@delld6h3.mcs.vuw.ac.nz:/mnt/SAVE/build.obj/mnt/src/src/sys/arch/i386/compile/MCS_WORKSTATION i386
Architecture: i386
Machine: i386
>Description:
When given the -f option gzip complains if a .gz file you are about to
create already exists while gnu gzip just overwrites it.
This is still true in revision 1.57 of gzip.c
>How-To-Repeat:
% touch a a.gz
% gzip -f a
GNU version replaces a.gz, NetBSD version complains
"gzip: could not create output: a.gz: File exists"
and leaves the files alone.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: