gunzip ignores 'n' when asked to overwrite file

Bug #1168049 reported by Ben Cordes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gzip (Debian)
Fix Released
Unknown
gzip (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Steps to repro:
% echo overwritten > test
% gzip test
% echo clean > test
% cat test
clean
% gunzip test.gz
gzip: test already exists; do you wish to overwrite (y or n)? n
% cat test
overwritten
%

This bug seems to have been reported in several other places as a compiler optimization bug (saw one reference to GCC 4.7 x86-64 -O2). It's possible that it's been fixed in upstream already.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: gzip 1.5-1.1ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-27.46-generic 3.5.7.7
Uname: Linux 3.5.0-27-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.6.1-0ubuntu10
Architecture: amd64
Date: Thu Apr 11 12:45:38 2013
InstallationDate: Installed on 2012-04-13 (363 days ago)
InstallationMedia: Ubuntu 10.04.2 LTS "Lucid Lynx" - Release amd64 (20110211.3)
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US
 SHELL=/bin/bash
SourcePackage: gzip
UpgradeStatus: Upgraded to quantal on 2012-11-09 (152 days ago)

Revision history for this message
Ben Cordes (cordes-ben) wrote :
Revision history for this message
Andrew McCarthy (andrewmccarthy) wrote :

Fixed in gzip 1.6-1. Oldest version in a supported version of Ubuntu is 1.6-3ubuntu1 (in Trusty).

Changed in gzip (Ubuntu):
status: New → Fix Released
Changed in gzip (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.