GNU bug report logs - #32815
Corrective patch for GNU gzip

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: gzip; Reported by: Manfred Morgner <manfred.morgner@HIDDEN>; dated Sun, 23 Sep 2018 22:55:01 UTC; Maintainer for gzip is bug-gzip@HIDDEN.

Message received at 32815 <at> debbugs.gnu.org:


Received: (at 32815) by debbugs.gnu.org; 24 Sep 2018 15:11:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 24 11:11:45 2018
Received: from localhost ([127.0.0.1]:52235 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1g4SWW-000827-2R
	for submit <at> debbugs.gnu.org; Mon, 24 Sep 2018 11:11:45 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:57040)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1g4SWU-00081r-2R
 for 32815 <at> debbugs.gnu.org; Mon, 24 Sep 2018 11:11:42 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2E2DE1615A6;
 Mon, 24 Sep 2018 08:11:36 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id TRda1E1bbNhK; Mon, 24 Sep 2018 08:11:35 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 710501615E8;
 Mon, 24 Sep 2018 08:11:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id MN0n0eoqqsPG; Mon, 24 Sep 2018 08:11:35 -0700 (PDT)
Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 576EF1615A6;
 Mon, 24 Sep 2018 08:11:35 -0700 (PDT)
Subject: Re: bug#32815: Corrective patch for GNU gzip
To: Manfred Morgner <manfred.morgner@HIDDEN>
References: <eb2127b7422ec9375e434bba993a82b900d4eab7.camel@HIDDEN>
 <a67650ed-2a54-2160-fb64-cd2026fc4a62@HIDDEN>
 <B8580F37-E5C9-4D20-A6C8-692EC8C498CC@HIDDEN>
 <08a17bdd-2bdc-817a-9dce-b3dff2b74635@HIDDEN>
 <E7E54F6A-451B-4070-81FB-BC40D8160F2E@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Openpgp: preference=signencrypt
Autocrypt: addr=eggert@HIDDEN; prefer-encrypt=mutual; keydata=
 xsFNBEyAcmQBEADAAyH2xoTu7ppG5D3a8FMZEon74dCvc4+q1XA2J2tBy2pwaTqfhpxxdGA9
 Jj50UJ3PD4bSUEgN8tLZ0san47l5XTAFLi2456ciSl5m8sKaHlGdt9XmAAtmXqeZVIYX/UFS
 96fDzf4xhEmm/y7LbYEPQdUdxu47xA5KhTYp5bltF3WYDz1Ygd7gx07Auwp7iw7eNvnoDTAl
 KAl8KYDZzbDNCQGEbpY3efZIvPdeI+FWQN4W+kghy+P6au6PrIIhYraeua7XDdb2LS1en3Ss
 mE3QjqfRqI/A2ue8JMwsvXe/WK38Ezs6x74iTaqI3AFH6ilAhDqpMnd/msSESNFt76DiO1ZK
 QMr9amVPknjfPmJISqdhgB1DlEdw34sROf6V8mZw0xfqT6PKE46LcFefzs0kbg4GORf8vjG2
 Sf1tk5eU8MBiyN/bZ03bKNjNYMpODDQQwuP84kYLkX2wBxxMAhBxwbDVZudzxDZJ1C2VXujC
 OJVxq2kljBM9ETYuUGqd75AW2LXrLw6+MuIsHFAYAgRr7+KcwDgBAfwhPBYX34nSSiHlmLC+
 KaHLeCLF5ZI2v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GxbmHVG6YGl6g8Lrbsu9NZEI4yLlHzuikthJWgz+3vZhVGyNlt+HNIoF6CjDL2omu
 5cEq4RDHM44QqPk6l7O0pUvN1mT4B+S1b08RKpqm/ff015E37HNV/piIvJlxGAYz8PSfuGCB
 1thMYqlmgdhd9/BabGFbGGYHA6U4/T5zqU+f6xHy1SsAQZ1MSKlLwekBIT+4/cLRGqCHjnV0
 q5H/T6a7t5mPkbzSrOLSo4puj+IToNjYyYIDBWzhlA19avOa+rvUjmHtD3sFN7cXWtkGoi8b
 uNcby4U=
Organization: UCLA Computer Science Department
Message-ID: <26f346f9-8848-8e8c-8cb0-b85239634a43@HIDDEN>
Date: Mon, 24 Sep 2018 08:11:35 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.0
MIME-Version: 1.0
In-Reply-To: <E7E54F6A-451B-4070-81FB-BC40D8160F2E@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 32815
Cc: 32815 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

On 9/24/18 2:55 AM, Manfred Morgner wrote:
> It does not the expected action. It does not compress and it does not r=
ename. But it Prints out a Text to inform about the Situation. I think th=
is Situation needs a warning Return Code or the warning text should Go. O=
therwise it=E2=80=98s a bit inconsistent, isn=E2=80=99t it?

It depends on what the user expects. It's not clear to me that this is a=20
bug.

Gzip formerly behaved the way you are asking for, but this was changed=20
in gzip 1.3.6 (2006). Although I don't recall why, most likely this was=20
in response to another bug report where someone complained that gzip was=20
warning about a situation even though everything was already OK from=20
their point of view.

It all depends on what the user expects, and what the most common use=20
cases are. What's your use case and why is the current behavior a=20
problem for you?





Information forwarded to bug-gzip@HIDDEN:
bug#32815; Package gzip. Full text available.

Message received at 32815 <at> debbugs.gnu.org:


Received: (at 32815) by debbugs.gnu.org; 24 Sep 2018 08:30:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Sep 24 04:30:05 2018
Received: from localhost ([127.0.0.1]:51293 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1g4MFp-0001lZ-Cq
	for submit <at> debbugs.gnu.org; Mon, 24 Sep 2018 04:30:05 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:51294)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1g4MFn-0001kW-64
 for 32815 <at> debbugs.gnu.org; Mon, 24 Sep 2018 04:30:03 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5DDDD1615A6;
 Mon, 24 Sep 2018 01:29:57 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id iE_8WndLybcA; Mon, 24 Sep 2018 01:29:56 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id AF4471615E8;
 Mon, 24 Sep 2018 01:29:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id ylBZkLi5OcTv; Mon, 24 Sep 2018 01:29:56 -0700 (PDT)
Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com
 [23.242.74.103])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 8DF071615A6;
 Mon, 24 Sep 2018 01:29:56 -0700 (PDT)
Subject: Re: bug#32815: Corrective patch for GNU gzip
To: Manfred Morgner <manfred.morgner@HIDDEN>, 32815 <at> debbugs.gnu.org
References: <eb2127b7422ec9375e434bba993a82b900d4eab7.camel@HIDDEN>
 <a67650ed-2a54-2160-fb64-cd2026fc4a62@HIDDEN>
 <B8580F37-E5C9-4D20-A6C8-692EC8C498CC@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Message-ID: <08a17bdd-2bdc-817a-9dce-b3dff2b74635@HIDDEN>
Date: Mon, 24 Sep 2018 01:29:56 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <B8580F37-E5C9-4D20-A6C8-692EC8C498CC@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 32815
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Manfred Morgner wrote:
> It schould return 2, as documented.

Only if the message "gzip: 2018.gz already has .gz suffix -- unchanged" is a 
warning. Arguably that is merely an informative message, and is not warning 
about anything, as nothing has gone wrong.




Information forwarded to bug-gzip@HIDDEN:
bug#32815; Package gzip. Full text available.

Message received at 32815 <at> debbugs.gnu.org:


Received: (at 32815) by debbugs.gnu.org; 24 Sep 2018 01:42:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 23 21:42:38 2018
Received: from localhost ([127.0.0.1]:51223 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1g4FtW-0008OU-B1
	for submit <at> debbugs.gnu.org; Sun, 23 Sep 2018 21:42:38 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:52642)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1g4FtT-0008OF-2j
 for 32815 <at> debbugs.gnu.org; Sun, 23 Sep 2018 21:42:36 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id C2D951615A6;
 Sun, 23 Sep 2018 18:42:28 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id 6oKbhEM6dPD3; Sun, 23 Sep 2018 18:42:28 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 224461615E8;
 Sun, 23 Sep 2018 18:42:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id Ubr2wA4Fl_fI; Sun, 23 Sep 2018 18:42:28 -0700 (PDT)
Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com
 [23.242.74.103])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id F17751615A6;
 Sun, 23 Sep 2018 18:42:27 -0700 (PDT)
Subject: Re: bug#32815: Corrective patch for GNU gzip
To: Manfred Morgner <manfred.morgner@HIDDEN>, 32815 <at> debbugs.gnu.org
References: <eb2127b7422ec9375e434bba993a82b900d4eab7.camel@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Message-ID: <a67650ed-2a54-2160-fb64-cd2026fc4a62@HIDDEN>
Date: Sun, 23 Sep 2018 18:42:22 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <eb2127b7422ec9375e434bba993a82b900d4eab7.camel@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 32815
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Manfred Morgner wrote:
> Hello all,
> the manual page of GNU gzip says:
> Exit status is normally 0; if an error occurs, exit status is 1. If a warning occurs, exit status is 2.
> This is not the case sind version >1.5 for the situation when the source file already ends with .gz
> Test:
> $ gzip 2018.gz
> gzip: 2018.gz already has .gz suffix -- unchanged
> $ echo $?
> 0

Why is this a bug? Arguably no error has occurred.




Information forwarded to bug-gzip@HIDDEN:
bug#32815; Package gzip. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Sep 2018 22:54:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 23 18:54:46 2018
Received: from localhost ([127.0.0.1]:51189 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1g4DH3-0004EJ-Tx
	for submit <at> debbugs.gnu.org; Sun, 23 Sep 2018 18:54:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52139)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <manfred.morgner@HIDDEN>) id 1g4B6L-0007OU-Mb
 for submit <at> debbugs.gnu.org; Sun, 23 Sep 2018 16:35:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <manfred.morgner@HIDDEN>) id 1g4B6C-00080v-En
 for submit <at> debbugs.gnu.org; Sun, 23 Sep 2018 16:35:28 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
 HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:38025)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <manfred.morgner@HIDDEN>)
 id 1g4B6A-0007zj-Ky
 for submit <at> debbugs.gnu.org; Sun, 23 Sep 2018 16:35:24 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33485)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <manfred.morgner@HIDDEN>) id 1g4B69-0000zb-OA
 for bug-gzip@HIDDEN; Sun, 23 Sep 2018 16:35:22 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <manfred.morgner@HIDDEN>) id 1g4B67-0007xb-IY
 for bug-gzip@HIDDEN; Sun, 23 Sep 2018 16:35:20 -0400
Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]:42195)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <manfred.morgner@HIDDEN>)
 id 1g4B62-0007lZ-RV
 for bug-gzip@HIDDEN; Sun, 23 Sep 2018 16:35:16 -0400
Received: by mail-ed1-x52e.google.com with SMTP id l5so14634830edw.9
 for <bug-gzip@HIDDEN>; Sun, 23 Sep 2018 13:35:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=message-id:subject:from:to:date:mime-version;
 bh=SOAvH1kEY59W/nrfcwE1XBtVsrU+mRutVn2W3DdhELg=;
 b=mSZblPFo5lUggW3KSb2PRYLaJNrWC97SXgmXrP83I7GIH2PkgghNpJM00zuBREsLuk
 aBFTyG5EzAte/kt1Xv8Rb31EDNt16OmXcoLwegTl8xqlF32JJaMZeLCmRiGMWczAKLPC
 sMsRZp58k33MXtZFOLxY9tdCBqvX3eJrfq0eb3xdLjitXyDgRIlf3LlhYN1N05r2bixG
 w7uE+/881a5BP2Hp8W3F8JZMaRqnX6lYYGLQUZQ64ItZJTforZZAOSrTlqFzyEenf+B9
 YHBb9jNCd5pBuY7R3mVjhLyW48dE8dwuRlsw7BljxPzZddpyJ0pxBHmjnW+W5lbmej1g
 rYoQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:message-id:subject:from:to:date:mime-version;
 bh=SOAvH1kEY59W/nrfcwE1XBtVsrU+mRutVn2W3DdhELg=;
 b=fGNvkFXHHr4d7EDAcgrVqHrNQcxpS6LQf+owpSrJ1bHwb/nD3bEIFBzN0Zyq/nuZTy
 R+t3uI8+nPAErzm72VEJsnw6BBD7qXLPeOgAaABaM6acHwWHyR6pLOLqE3CCU7o9dehv
 y4wYEvBTZE9LVt0n469pDq0KEDKr6o2uMnN9s4b8YE0ddnvTvIh3035AFZix35wroB/9
 jGiXbg6MNcTRNx4hFl8aH1+Tau+ALqm2Wi9hJaDuKjkTX2vTRpTrz5720lrPWowlm39c
 PBKmKo4kubiJi6lFH8IzhJFT0e4VAstdh0g/nzYr66/Uh8D/75UBdNLDBTkDJdKsxvN/
 R3jA==
X-Gm-Message-State: APzg51AwQRkWiS4130xBno6egEmcf56qk1RTQiRfTlMGfpWTzjQWx1QF
 pL+0NbZeytSeLwxbxioHzmlaCHqbSYE=
X-Google-Smtp-Source: ACcGV60ndfoIAQrwLo5fm3ozPAeKEvZ6o4wNAK/cAR9vRpJug6EINNgQVQN26ypt6q9PgvVlpVAZtA==
X-Received: by 2002:a50:c251:: with SMTP id
 t17-v6mr11686666edf.108.1537734907166; 
 Sun, 23 Sep 2018 13:35:07 -0700 (PDT)
Received: from lenovum ([2001:470:26:42c:b769:a2f0:9238:b882])
 by smtp.gmail.com with ESMTPSA id a11-v6sm4638179edn.95.2018.09.23.13.35.05
 for <bug-gzip@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sun, 23 Sep 2018 13:35:06 -0700 (PDT)
Message-ID: <eb2127b7422ec9375e434bba993a82b900d4eab7.camel@HIDDEN>
Subject: Corrective patch for GNU gzip
From: Manfred Morgner <manfred.morgner@HIDDEN>
To: bug-gzip@HIDDEN
Date: Sun, 23 Sep 2018 22:35:05 +0200
Content-Type: multipart/alternative; boundary="=-vA6YPca84li5aI4sofOh"
X-Mailer: Evolution 3.28.5 (3.28.5-1.fc28) 
Mime-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sun, 23 Sep 2018 18:54:44 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)


--=-vA6YPca84li5aI4sofOh
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit

Hello all,
the manual page of GNU gzip says:
------------------------------DIAGNOSTICS       Exit status is normally 0; if an error occurs, exit status is 1. If a warning occurs, exit status is 2.------------------------------
This is not the case sind version >1.5 for the situation when the source file already ends with .gz 
Test:
$ gzip 2018.gzgzip: 2018.gz already has .gz suffix -- unchanged$ echo $?0
Following the patch for it:
diff --git a/gzip.c b/gzip.cindex e6a7761..bf3eb0a 100644--- a/gzip.c+++ b/gzip.c@@ -1417,8 +1417,8 @@ local int make_ofname()         /* Avoid annoying messages with -r (see treat_dir()) */         if (verbose || (!recursive && !quiet)) {             /* Don't use WARN, as it affects exit status.  */-            fprintf (stderr, "%s: %s already has %s suffix -- unchanged\n",-                     program_name, ifname, suff);+            WARN ((stderr, "%s: %s already has %s suffix -- unchanged\n",+                     program_name, ifname, suff));         }         return WARNING;     } else {
Test:
$ gzip 2018.gzgzip: 2018.gz already has .gz suffix -- unchanged$ echo $?2
Best regards,Manfred

--=-vA6YPca84li5aI4sofOh
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html dir=3D"ltr"><head></head><body style=3D"text-align:left; direction:lt=
r;" bgcolor=3D"#ffffff" text=3D"#5c616c" link=3D"#2679db" vlink=3D"#5c616c"=
><div>Hello all,</div><div><br></div><div>the manual page of GNU gzip says:=
</div><div><br></div><div>------------------------------</div><div>DIAGNOST=
ICS</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exit status is norm=
ally 0; if an error occurs, exit status is 1. If a warning occurs, exit sta=
tus is 2.</div><div>------------------------------</div><div><br></div><div=
>This is not the case sind version &gt;1.5 for the situation when the sourc=
e file already ends with .gz </div><div><br></div><div>Test:</div><div><br>=
</div><div><font face=3D"monospace" size=3D"3">$ gzip 2018.gz</font></div><=
div><font face=3D"monospace" size=3D"3">gzip: 2018.gz already has .gz suffi=
x -- unchanged</font></div><div><font face=3D"monospace" size=3D"3">$ echo =
$?</font></div><div><font face=3D"monospace" size=3D"3">0</font></div><div>=
</div><div><br></div><div>Following the patch for it:</div><div><br></div><=
div><font face=3D"monospace" size=3D"3">diff --git a/gzip.c b/gzip.c</font>=
</div><div><font face=3D"monospace" size=3D"3">index e6a7761..bf3eb0a 10064=
4</font></div><div><font face=3D"monospace" size=3D"3">--- a/gzip.c</font><=
/div><div><font face=3D"monospace" size=3D"3">+++ b/gzip.c</font></div><div=
><font face=3D"monospace" size=3D"3">@@ -1417,8 +1417,8 @@ local int make_o=
fname()</font></div><div><font face=3D"monospace" size=3D"3">&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/* Avoid annoying messages with -r =
(see treat_dir()) */</font></div><div><font face=3D"monospace" size=3D"3">&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (verbose || (!recur=
sive &amp;&amp; !quiet)) {</font></div><div><font face=3D"monospace" size=
=3D"3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;/* Don't use WARN, as it affects exit status.&nbsp;&nbsp;*/</font=
></div><div><font face=3D"monospace" size=3D"3">-&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf (stderr, "%s: %s alre=
ady has %s suffix -- unchanged\n",</font></div><div><font face=3D"monospace=
" size=3D"3">-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;program_na=
me, ifname, suff);</font></div><div><font face=3D"monospace" size=3D"3">+&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WARN =
((stderr, "%s: %s already has %s suffix -- unchanged\n",</font></div><div><=
font face=3D"monospace" size=3D"3">+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;program_name, ifname, suff));</font></div><div><font face=3D"mo=
nospace" size=3D"3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}=
</font></div><div><font face=3D"monospace" size=3D"3">&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return WARNING;</font></div><div><font fac=
e=3D"monospace" size=3D"3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} else {</font></d=
iv><div><br></div><div>Test:</div><div><br></div><div><div><div><font face=
=3D"monospace" size=3D"3">$ gzip 2018.gz</font></div><div><font face=3D"mon=
ospace" size=3D"3">gzip: 2018.gz already has .gz suffix -- unchanged</font>=
</div><div><font face=3D"monospace" size=3D"3">$ echo $?</font></div><div><=
font face=3D"monospace" size=3D"3">2</font></div><div><br></div><div>Best r=
egards,</div><div>Manfred</div><div></div></div><div></div></div><div></div=
><div></div></body></html>

--=-vA6YPca84li5aI4sofOh--





Acknowledgement sent to Manfred Morgner <manfred.morgner@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gzip@HIDDEN. Full text available.
Report forwarded to bug-gzip@HIDDEN:
bug#32815; Package gzip. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.