GNU bug report logs - #50097
gzip: add "--keep" option to keep original files unchanged

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; Severity: wishlist; Reported by: Krzysztof Żelechowski <giecrilj@HIDDEN>; dated Tue, 17 Aug 2021 17:45:01 UTC; Maintainer for gzip is bug-gzip@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Paul Eggert <eggert@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 50097) by debbugs.gnu.org; 22 Aug 2021 11:31:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 22 07:31:47 2021
Received: from localhost ([127.0.0.1]:38273 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mHlha-0006Cm-RK
	for submit <at> debbugs.gnu.org; Sun, 22 Aug 2021 07:31:47 -0400
Received: from shark2.2a.pl ([213.77.90.2]:64896 helo=shark.2a.pl)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <giecrilj@HIDDEN>) id 1mHlhZ-00067H-4d
 for 50097 <at> debbugs.gnu.org; Sun, 22 Aug 2021 07:31:46 -0400
Received: from wrasse.2a.pl (wrasse.2a.pl [213.77.90.7])
 by shark.2a.pl (Postfix) with ESMTP id CC1681750848;
 Sun, 22 Aug 2021 13:31:38 +0200 (CEST)
X-Virus-Scanned: amavisd-new at 2a.pl
Received: from shark.2a.pl ([213.77.90.2])
 by wrasse.2a.pl (wrasse.2a.pl [213.77.90.7]) (amavisd-new, port 10024)
 with ESMTP id zZx27IJY9mqK; Sun, 22 Aug 2021 13:31:36 +0200 (CEST)
Received: from localhost.localdomain (unknown [10.8.1.26])
 by shark.2a.pl (Postfix) with ESMTPSA id 87C871750856;
 Sun, 22 Aug 2021 13:31:36 +0200 (CEST)
From: Krzysztof =?utf-8?B?xbtlbGVjaG93c2tp?= <giecrilj@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>, Jim Meyering <jim@HIDDEN>, "Adler,
 Mark" <madler@HIDDEN>
Subject: Re: bug#50097: gzip: add "--keep" option to keep original files
 unchanged
Date: Sun, 22 Aug 2021 13:31:34 +0200
Message-ID: <8489689.Gvz0ieAhEo@HIDDEN>
In-Reply-To: <D908D62E-58D4-4209-80B6-8D87BE38C932@HIDDEN>
References: <1360423274-17560-1-git-send-email-rodrigo@HIDDEN>
 <1715184.rXjuHfsrS2@HIDDEN>
 <D908D62E-58D4-4209-80B6-8D87BE38C932@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 50097
Cc: Rodrigo Campos <rodrigo@HIDDEN>,
 "50097 <at> debbugs.gnu.org" <50097 <at> debbugs.gnu.org>,
 Antonio Diaz Diaz <antonio@HIDDEN>
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: -1.0 (-)

Dnia niedziela, 22 sierpnia 2021 13:21:45 CEST Adler, Mark pisze:
> Just for information, up to now, pigz would merrily unlink the hard link =
of
> the input file, even if it has other hard links. While I=E2=80=99m not su=
re I
> understand why it shouldn=E2=80=99t do that (that is in fact what you ask=
ed it to
> do), in the spirit of behaving mostly like gzip, it will now* not

I assumed we wanted to prevent the possibility that we would overwrite and=
=20
rename the file instead of removing it.  I understand that it is not the=20
current approach and it stinks of data loss but it possible to do it that w=
ay,=20
e.g. if the underlying file system is transactional; in that case, the=20
difference would not be observable.

Chris






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

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


Received: (at 50097) by debbugs.gnu.org; 22 Aug 2021 11:22:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 22 07:22:00 2021
Received: from localhost ([127.0.0.1]:38260 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mHlY8-0004Tz-Il
	for submit <at> debbugs.gnu.org; Sun, 22 Aug 2021 07:22:00 -0400
Received: from mail-dm6nam11on2083.outbound.protection.outlook.com
 ([40.107.223.83]:64356 helo=NAM11-DM6-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <madler@HIDDEN>) id 1mHlY6-0004Tk-1v
 for 50097 <at> debbugs.gnu.org; Sun, 22 Aug 2021 07:21:59 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=aQgSM9oW2mxtb3HKCW5GX8IO1SExTLJlkOPyIVLa0QI/nFJRO9uYJkKGWB8bzyP5nmHy6RCRmT+W7KOVc9vqDRnojH44zsgMZ5/T6KmUcUMrZnZf6wkMOVnQVZloBCovnE9NGrexo8QddBgsQ2DQMcIXfSbCefcpuoAkB2xFOfhvi4fwb5qUgoPIDdR0s+7aHCZ84qHpU57kOBBLhzADSSNST/9sK6yzH/vIXbjRULgwIM0rG7ueGT1reOFRVO6AoM8O9ARRjs+yz6i67s6rsb9a4W/EMWkCYN8tDMOA1eFloM/YE4sXvg5ZG6yb99ig497MV+TpjvTY+vTpp7meWg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=liWaSP+8ix8UPTXD+sdIbaiGtI+d1fEXKJ/My2ZqQVA=;
 b=RPsmXTnR8TYpCtoSSkOSrJJ+Ke+5LOubmiYWTyJicdbiXCCxew+OLwd5VRZ7AsUzP93A7wvjXjHi4l+uzhPXkk+ZfqIV3bL8H0z1rh6Cyo2FnyuqV6IR//4mcfm0nr0KwIh0M57pXcVFZn9jeEJV9ifvmcDJjPcR97vrZ4+/I9gKKgppoHbvyTGm9qWxBdkNUN2wnJ1VfS5U5nou3TetuYj2I+FUGI/GiS1s78yYfuZ9ozKGcz0uCQca6tEc+6Rkki8aAt1k6r+wcJE+FyPBlZdxkgWDXOaiEkKxS1tkFWR9gpaRA+X1X55hv2JF3oSG0RIXCjsK1XSE6LX4NtTTvQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=alumni.caltech.edu; dmarc=pass action=none
 header.from=alumni.caltech.edu; dkim=pass header.d=alumni.caltech.edu;
 arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alumni.caltech.edu;
 s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=liWaSP+8ix8UPTXD+sdIbaiGtI+d1fEXKJ/My2ZqQVA=;
 b=FZ7zzcDy7bBodz474dbqaglbJ3e7KKLFXyIWes8b1TLmduKuBkUG0NDNLygzFXsjIDMSd0cIONacd9JwjdB7qyysuPJ0uSZgNSkSuUGQr2rdhKtr8ZGyAOgYR+SWbArMuAZ6sHHHxdf6WD0R+yGbByJwf5IYK2EnysK9sQOTrsPVOx7oz8UO0KFhZC1pZEBieXDLnUELspc5u0NwWrnw90NDwP5BYmfLgbhBKoL8fWjZkWKRn7RiqHAV1wkcQq48bREZLSxYHBZgJzuDtyucpPF9SGGjo4gdOC6JLhyxOP/dZH4JuSgyP5x6ei94sciogfV8WjjfPGQ9dsuOTGGG1Q==
Received: from BYAPR03MB4870.namprd03.prod.outlook.com (2603:10b6:a03:130::24)
 by BYAPR03MB4485.namprd03.prod.outlook.com (2603:10b6:a03:c3::12)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.21; Sun, 22 Aug
 2021 11:21:46 +0000
Received: from BYAPR03MB4870.namprd03.prod.outlook.com
 ([fe80::dd8e:27e7:f81f:b0fc]) by BYAPR03MB4870.namprd03.prod.outlook.com
 ([fe80::dd8e:27e7:f81f:b0fc%6]) with mapi id 15.20.4436.024; Sun, 22 Aug 2021
 11:21:46 +0000
From: "Adler, Mark" <madler@HIDDEN>
To: =?utf-8?B?S3J6eXN6dG9mIMW7ZWxlY2hvd3NraQ==?= <giecrilj@HIDDEN>, Paul
 Eggert <eggert@HIDDEN>, Jim Meyering <jim@HIDDEN>
Subject: Re: bug#50097: gzip: add "--keep" option to keep original files
 unchanged
Thread-Topic: bug#50097: gzip: add "--keep" option to keep original files
 unchanged
Thread-Index: AQHXlvGlUXgVUJddTUGUO4f51+Pge6t/YeSA
Date: Sun, 22 Aug 2021 11:21:45 +0000
Message-ID: <D908D62E-58D4-4209-80B6-8D87BE38C932@HIDDEN>
References: <1360423274-17560-1-git-send-email-rodrigo@HIDDEN>
 <472c3237-76e7-15fa-d3d2-2c084b96c117@HIDDEN>
 <CA+8g5KEk40o5WmFH_MxiYAeU4_ttnjfh_-eJ9w=qRg3DuRpTxg@HIDDEN>
 <1715184.rXjuHfsrS2@HIDDEN>
In-Reply-To: <1715184.rXjuHfsrS2@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-mailer: Apple Mail (2.3654.120.0.1.13)
authentication-results: stegny.2a.pl; dkim=none (message not signed)
 header.d=none;stegny.2a.pl; dmarc=none action=none
 header.from=alumni.caltech.edu;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: a45dc344-17d2-4b7e-a32d-08d9655f06cf
x-ms-traffictypediagnostic: BYAPR03MB4485:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <BYAPR03MB44858042A0EA786BFC045DDAFBC39@HIDDEN>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: OieVJ9SRmVvQfOV32hpRw9c7SMFZh6eDTXkIw63q5rBgZQP9FHbzpzCZr+085+y4FPWLeOh2Mo3WrMkI/ZRpyQlpi/t1cyuBnTaX4glO/RWg8TmNzcRuN1AtnL93ZZ13AiO3ypzl6L5vzWRIlGfdG+RLsDkiOQB+LiAuXL7Qd2ZjezCRmUVLs59kx+bwQuv+NvVV/OkoBJLkOvbr122h20cfT+T6Z2v/KD8tVraLHqAaky0xIDR550t7So6wEf/GjJ6kRi3Lr471aiiuIiQMt2AUfL/k+vghIjpx7v/KzHxATfKqupY64nIGH9yLhdpq62EY2+Ra/+zRfSZrppcPNS22rDGwLtX93Y2r+qPiSq/BlJAe/a6H8KQzONQTDcVnXAEScrxjgmrN9tIMNHPJEEJnYSYDZSyORBwPPF6z4qvKl4OmiQFvxAqPTHBUz4se2m9LTwg7Ps4UchcVE+yTMnMI4lV8WjxpNIchE8ZJskrl7ODHfBRSU+TQLF3JJl0l8d0z0D2WFZuI/TjxcbpK4dMCWkpTRec4Ow0JsEhWylZ8NtbMP2pU7V+RlYCpOrB6LwplpBPoj9NDkZaYC5VXCFdZn4/wlQ3eqGojANsBq+U2s4cfoVIQVzfwWanC5aLVJReK/CbFeUOaD53a54B3nE1x2QJhZGiehGzXKfTdw0G6DOMIC3h/7A2BEaLnHtQDHnfs0GTMceFJds2ihoFrppSE9VIb0twIewB7qjuEp/o=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:BYAPR03MB4870.namprd03.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(4636009)(396003)(346002)(366004)(39850400004)(376002)(136003)(5660300002)(66446008)(8676002)(6486002)(64756008)(6512007)(6506007)(53546011)(76116006)(66476007)(66556008)(66946007)(110136005)(54906003)(86362001)(26005)(4326008)(786003)(33656002)(316002)(2906002)(478600001)(186003)(71200400001)(75432002)(2616005)(38070700005)(122000001)(38100700002)(8936002)(45980500001);
 DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?utf-8?B?UnBaTzVEYUZNZGt5dGRWcFRuc252Q2VyK2h6cnBaeGFPOTI4V0pOeUhra2h3?=
 =?utf-8?B?eGlwalQxTTBpQlBaZ0JPR1l4TnB6KzZZTHpSMHdXck9nTGxPK00zbW1uV3BH?=
 =?utf-8?B?Z1hETlZsOVNFUlQ3ZWxwZUczc0FhV2RGVE9wMlNyYWpuWTliV24zOG1hRmdp?=
 =?utf-8?B?TnM5USt1cmhJWWpKODNsbytoZHo2OEM5ZFk3R1phOGJEcGJUUnV4THNZSFI3?=
 =?utf-8?B?K2tKdFBsVzN3V29JMHpNeHl6T3QxaHdNdktwYWVreS9kSExtcE5mMTBvY3dv?=
 =?utf-8?B?RU9neml0dUxWVG9IZG01RG9CMXNTQ0Z5Wko2QmZGOGF1cGNGMUgvZTkrMTA4?=
 =?utf-8?B?UVVQS1hyK3FwaHl2M3NKcUtFWE1SMlp2RXhuMG9JVzlrdGV6OU5sOVVjd0NP?=
 =?utf-8?B?bHlCbkwyaXFqWEtVQ2c3WHNpOHBUbmtBK0wrNko5MGYvRDN4ZFJMQnB3Zmht?=
 =?utf-8?B?emJXYTAxUGk5VStnZTl2a3Evb0U0d3dBdUdjYk9tbU5QVzFtK3p3UmI2dERm?=
 =?utf-8?B?MW9yMFZPYmlGdkFqRWd1dTNtTit3ckJjTHEzd1FkY2E1RWxqajBuamJxbGRo?=
 =?utf-8?B?TFh3OVJ5Y2xUNWsvVzIrUHJzTi9keDdJK1VsbDJwMFN6TUFHRFpLbFd0eXlJ?=
 =?utf-8?B?YWdBQXBJVE1qaEJqamxZM2xCemxQVjBXVU1iME5yak1rYzJ4MVlDajdUNC80?=
 =?utf-8?B?SVZYVXZyaVBXMmxpN0djVWZPd20vK3dVNWtCU2ViTHBwVU9OdXNhYW9SWFNT?=
 =?utf-8?B?RGJaSmRsZWZGTm1uT0NGcVRYQTN6dFp2TlE3dlF1WWZlaVovZjhuc0FhdWtZ?=
 =?utf-8?B?UUtNZlRqdVlEMVpTNVh6NTJHdUpidEg5aFhoSWpuUFJTVE1DU1VFWkt2Tmlz?=
 =?utf-8?B?bWxLLzBKejFRZi8yNndnYUwwOE5ZQTh1VGRRYmFMT3Jqc1ZpRmQwRUpjY3R6?=
 =?utf-8?B?RFFNbjlEUmJGN3pJMkdQSHVYMXFpUS9mRlB4aTJ2TzhKa09tRzZZRmMzZUc2?=
 =?utf-8?B?VkY2dHRaTUlWU0pYcWx5QW03VHh2bGlFUUUrN3BNbkxGdW1NYUplbFQreG9V?=
 =?utf-8?B?cVRRNkdmcGZSNVZZcjVISXN2d295YTdlV0F2Qjl0clo5NzRNRzIwQVJJTG5V?=
 =?utf-8?B?d2NTbC9BNXdBQkY0TTN5Q3VoS3J4Z1ZHVzBBd2xRK3huSnJpbXM1cm1FdzV5?=
 =?utf-8?B?b20wNkNyNWRBVGxYSkhWbXg3WmhZRUlPME91WkIzY1UwSlFweTZ2SFFWVm1J?=
 =?utf-8?B?NU5ISXpxOUtQL2xsYTlWSzNDWm5IU3JMelpJY0NIN2ZGU3lralp1T3NvRlZU?=
 =?utf-8?B?aXBVeHNld1RJWjVvZ2RZLzIxdEZta0dKcU5uaTZLdEFqQzcvNC9uUFhDci9r?=
 =?utf-8?B?S09iblBzdHBCUkgyZ1QyRkpoQkR2SWYyMkZVUG5TZ1czWEUzWEdISGFlNzJl?=
 =?utf-8?B?azRyYWJHaHhjYU1ESGUvdlB6R1YxMGVoSzZmcklDOU9BNm1DWXVTN2RFbHNv?=
 =?utf-8?B?ckNOVHpnajdNVXRnRU1rUlFXZDZIUlpzR0xSRlloSEtxaStiUDRua3grVk5E?=
 =?utf-8?B?eW5oM2tGOXNENkx1RzVPSXc0TExmT0ZMaFBJV0R3YU5HemVYOC91aUxQMlB6?=
 =?utf-8?B?OFZDQW9oK0E3VTdFbWJUUTYybWd1RFhpajc5cWVCMFcwZ3pSSjliTjJ2YkxY?=
 =?utf-8?B?UUdweGZSZGxNQ0NqRXBUdDhaT1pBTjJuaVJxRHZCYWQ3NjlDOFE5blNOSS81?=
 =?utf-8?Q?dgN0+OnkrankIEC5kdAsNAfLP7XJzJOtVoVl+0Z?=
Content-Type: multipart/alternative;
 boundary="_000_D908D62E58D4420980B68D87BE38C932alumnicaltechedu_"
MIME-Version: 1.0
X-OriginatorOrg: alumni.caltech.edu
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BYAPR03MB4870.namprd03.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: a45dc344-17d2-4b7e-a32d-08d9655f06cf
X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Aug 2021 11:21:45.8886 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: fd5be9d9-7b72-4df9-830e-b1f9cc5b44bd
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: Kez8JefeEYwzeW+hJ57ENNOPNyA8IqdGY5OLckGPaobm8/nFFMEAg/x4iXZOAeWkKIsfZKv/zYKXt16nWTF+qJHHGDzGm3z5ERARjuyqb4q8mrYSme5aWZUw6bw7BhcC
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR03MB4485
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 50097
Cc: Rodrigo Campos <rodrigo@HIDDEN>,
 "50097 <at> debbugs.gnu.org" <50097 <at> debbugs.gnu.org>,
 Antonio Diaz Diaz <antonio@HIDDEN>
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: -1.0 (-)

--_000_D908D62E58D4420980B68D87BE38C932alumnicaltechedu_
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64

Z3ppcCB0aGVvbG9naWFucywNCg0KSnVzdCBmb3IgaW5mb3JtYXRpb24sIHVwIHRvIG5vdywgcGln
eiB3b3VsZCBtZXJyaWx5IHVubGluayB0aGUgaGFyZCBsaW5rIG9mIHRoZSBpbnB1dCBmaWxlLCBl
dmVuIGlmIGl0IGhhcyBvdGhlciBoYXJkIGxpbmtzLiBXaGlsZSBJ4oCZbSBub3Qgc3VyZSBJIHVu
ZGVyc3RhbmQgd2h5IGl0IHNob3VsZG7igJl0IGRvIHRoYXQgKHRoYXQgaXMgaW4gZmFjdCB3aGF0
IHlvdSBhc2tlZCBpdCB0byBkbyksIGluIHRoZSBzcGlyaXQgb2YgYmVoYXZpbmcgbW9zdGx5IGxp
a2UgZ3ppcCwgaXQgd2lsbCBub3cqIG5vdCB1bmxpbmsgdGhlIGlucHV0IGZpbGUgaWYgaXQgaGFz
IG90aGVyIGhhcmQgbGlua3MuIEl0IHdpbGwgbGV0IHlvdSBrbm93IGl0IGRpZG7igJl0IGRvIHRo
YXQsIHVubGVzcyAtayB3YXMgcHJvdmlkZWQuIEhvd2V2ZXIgaXQgd2lsbCBwcm9jZWVkIHdpdGgg
dGhlIGNvbXByZXNzaW9uIChvciBkZWNvbXByZXNzaW9uKSBhbmQgY3JlYXRlIHRoZSBmaWxlIHdp
dGggdGhlIC5neiBhZGRlZCAob3IgdGhlIC5neiByZW1vdmVkKS4gSWYgLWYgaXMgc3BlY2lmaWVk
LCBpdCB3aWxsIHVubGluayB0aGUgaW5wdXQgZmlsZSByZWdhcmRsZXNzIG9mIHRoZSBudW1iZXIg
b2YgaGFyZCBsaW5rcyBpdCBoYXMuDQoNCk1hcmsNCg0KKiDigJxub3figJ0gbWVhbnMgb24gdGhl
IGRldmVsb3AgYnJhbmNoIG9mIHBpZ3ogb24gZ2l0aHViLiBJIGhhdmUgbm90IHlldCByZWxlYXNl
ZCBhIG5ldyB2ZXJzaW9uIHdpdGggdGhhdCBjb21taXQuDQoNCg0KT24gQXVnIDIxLCAyMDIxLCBh
dCA2OjAyIFBNLCBLcnp5c3p0b2YgxbtlbGVjaG93c2tpIDxnaWVjcmlsakBzdGVnbnkuMmEucGw8
bWFpbHRvOmdpZWNyaWxqQHN0ZWdueS4yYS5wbD4+IHdyb3RlOg0KDQpEbmlhIHNvYm90YSwgMjEg
c2llcnBuaWEgMjAyMSAxNTo1NTo0NSBDRVNUIEppbSBNZXllcmluZyBwaXN6ZToNCkkuZS4sIHdl
IGhhdmUgdG8gd2VpZ2ggIndoYXQgY291bGQgZ28gd3Jvbmc/IiBhZ2FpbnN0ICJ3aGF0IHdvdWxk
IGJlDQppbXByb3ZlZD8iIEluIHRoaXMgY2FzZSwgdGhlIHdlaWdodHMgYXJlIHNtYWxsIG9uIGVh
Y2ggc2lkZS4gVGhhdCBhbG9uZQ0KYXJndWVzIGFnYWluc3QgbWFraW5nIGEgc2VtYW50aWNzLWNo
YW5naW5nIG1vZGlmaWNhdGlvbiB0byBzdWNoIGEgdG9vbC4NCg0KVGhlIGJhZCB3ZWlnaHQgb24g
dGhlICJmb3IiIHNpZGUgaXMgMCwgdGhlIGNvdW50ZXJleGFtcGxlcyBhcmUgdW5jb252aW5jaW5n
Lg0KDQpCUiwNCkNocmlzDQoNCg==

--_000_D908D62E58D4420980B68D87BE38C932alumnicaltechedu_
Content-Type: text/html; charset="utf-8"
Content-ID: <04919BD9CC274F42AAC193B6A248694F@HIDDEN>
Content-Transfer-Encoding: base64

PGh0bWw+DQo8aGVhZD4NCjxtZXRhIGh0dHAtZXF1aXY9IkNvbnRlbnQtVHlwZSIgY29udGVudD0i
dGV4dC9odG1sOyBjaGFyc2V0PXV0Zi04Ij4NCjwvaGVhZD4NCjxib2R5IHN0eWxlPSJ3b3JkLXdy
YXA6IGJyZWFrLXdvcmQ7IC13ZWJraXQtbmJzcC1tb2RlOiBzcGFjZTsgbGluZS1icmVhazogYWZ0
ZXItd2hpdGUtc3BhY2U7IiBjbGFzcz0iIj4NCjxkaXYgY2xhc3M9IiI+Z3ppcCZuYnNwO3RoZW9s
b2dpYW5zLDwvZGl2Pg0KPGRpdiBjbGFzcz0iIj48YnIgY2xhc3M9IiI+DQo8L2Rpdj4NCkp1c3Qg
Zm9yIGluZm9ybWF0aW9uLCB1cCB0byBub3csIHBpZ3ogd291bGQgbWVycmlseSB1bmxpbmsgdGhl
IGhhcmQgbGluayBvZiB0aGUgaW5wdXQgZmlsZSwgZXZlbiBpZiBpdCBoYXMgb3RoZXIgaGFyZCBs
aW5rcy4gV2hpbGUgSeKAmW0gbm90IHN1cmUgSSB1bmRlcnN0YW5kIHdoeSBpdCBzaG91bGRu4oCZ
dCBkbyB0aGF0ICh0aGF0IGlzIGluIGZhY3Qgd2hhdCB5b3UgYXNrZWQgaXQgdG8gZG8pLCBpbiB0
aGUgc3Bpcml0IG9mIGJlaGF2aW5nIG1vc3RseQ0KIGxpa2UgZ3ppcCwgaXQgd2lsbCBub3cqIG5v
dCB1bmxpbmsgdGhlIGlucHV0IGZpbGUgaWYgaXQgaGFzIG90aGVyIGhhcmQgbGlua3MuIEl0IHdp
bGwgbGV0IHlvdSBrbm93IGl0IGRpZG7igJl0IGRvIHRoYXQsIHVubGVzcyAtayB3YXMgcHJvdmlk
ZWQuIEhvd2V2ZXIgaXQNCjxpIGNsYXNzPSIiPndpbGw8L2k+IHByb2NlZWQgd2l0aCB0aGUgY29t
cHJlc3Npb24gKG9yIGRlY29tcHJlc3Npb24pIGFuZCBjcmVhdGUgdGhlIGZpbGUgd2l0aCB0aGUg
Lmd6IGFkZGVkIChvciB0aGUgLmd6IHJlbW92ZWQpLiBJZiAtZiBpcyBzcGVjaWZpZWQsIGl0IHdp
bGwgdW5saW5rIHRoZSBpbnB1dCBmaWxlIHJlZ2FyZGxlc3Mgb2YgdGhlIG51bWJlciBvZiBoYXJk
IGxpbmtzIGl0IGhhcy4NCjxkaXYgY2xhc3M9IiI+PGJyIGNsYXNzPSIiPg0KPC9kaXY+DQo8ZGl2
IGNsYXNzPSIiPg0KPGRpdj5NYXJrPC9kaXY+DQo8ZGl2PjxiciBjbGFzcz0iIj4NCjwvZGl2Pg0K
PGRpdj4qIOKAnG5vd+KAnSBtZWFucyBvbiB0aGUgZGV2ZWxvcCBicmFuY2ggb2YgcGlneiBvbiBn
aXRodWIuIEkgaGF2ZSBub3QgeWV0IHJlbGVhc2VkIGEgbmV3IHZlcnNpb24gd2l0aCB0aGF0IGNv
bW1pdC48YnIgY2xhc3M9IiI+DQo8L2Rpdj4NCjxkaXYgY2xhc3M9IiI+PGJyIGNsYXNzPSIiPg0K
PC9kaXY+DQo8ZGl2PjxiciBjbGFzcz0iIj4NCjxibG9ja3F1b3RlIHR5cGU9ImNpdGUiIGNsYXNz
PSIiPg0KPGRpdiBjbGFzcz0iIj5PbiBBdWcgMjEsIDIwMjEsIGF0IDY6MDIgUE0sIEtyenlzenRv
ZiDFu2VsZWNob3dza2kgJmx0OzxhIGhyZWY9Im1haWx0bzpnaWVjcmlsakBzdGVnbnkuMmEucGwi
IGNsYXNzPSIiPmdpZWNyaWxqQHN0ZWdueS4yYS5wbDwvYT4mZ3Q7IHdyb3RlOjwvZGl2Pg0KPGJy
IGNsYXNzPSJBcHBsZS1pbnRlcmNoYW5nZS1uZXdsaW5lIj4NCjxkaXYgY2xhc3M9IiI+DQo8ZGl2
IGNsYXNzPSIiPkRuaWEgc29ib3RhLCAyMSBzaWVycG5pYSAyMDIxIDE1OjU1OjQ1IENFU1QgSmlt
IE1leWVyaW5nIHBpc3plOjxiciBjbGFzcz0iIj4NCjxibG9ja3F1b3RlIHR5cGU9ImNpdGUiIGNs
YXNzPSIiPkkuZS4sIHdlIGhhdmUgdG8gd2VpZ2ggJnF1b3Q7d2hhdCBjb3VsZCBnbyB3cm9uZz8m
cXVvdDsgYWdhaW5zdCAmcXVvdDt3aGF0IHdvdWxkIGJlPGJyIGNsYXNzPSIiPg0KaW1wcm92ZWQ/
JnF1b3Q7IEluIHRoaXMgY2FzZSwgdGhlIHdlaWdodHMgYXJlIHNtYWxsIG9uIGVhY2ggc2lkZS4g
VGhhdCBhbG9uZTxiciBjbGFzcz0iIj4NCmFyZ3VlcyBhZ2FpbnN0IG1ha2luZyBhIHNlbWFudGlj
cy1jaGFuZ2luZyBtb2RpZmljYXRpb24gdG8gc3VjaCBhIHRvb2wuPGJyIGNsYXNzPSIiPg0KPC9i
bG9ja3F1b3RlPg0KPGJyIGNsYXNzPSIiPg0KVGhlIGJhZCB3ZWlnaHQgb24gdGhlICZxdW90O2Zv
ciZxdW90OyBzaWRlIGlzIDAsIHRoZSBjb3VudGVyZXhhbXBsZXMgYXJlIHVuY29udmluY2luZy48
YnIgY2xhc3M9IiI+DQo8YnIgY2xhc3M9IiI+DQpCUiw8YnIgY2xhc3M9IiI+DQpDaHJpczwvZGl2
Pg0KPC9kaXY+DQo8L2Jsb2NrcXVvdGU+DQo8YnIgY2xhc3M9IiI+DQo8L2Rpdj4NCjwvZGl2Pg0K
PC9ib2R5Pg0KPC9odG1sPg0K

--_000_D908D62E58D4420980B68D87BE38C932alumnicaltechedu_--




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

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


Received: (at 50097) by debbugs.gnu.org; 22 Aug 2021 01:03:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 21 21:03:10 2021
Received: from localhost ([127.0.0.1]:38022 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mHbt0-0005e2-Ur
	for submit <at> debbugs.gnu.org; Sat, 21 Aug 2021 21:03:09 -0400
Received: from shark2.2a.pl ([213.77.90.2]:62156 helo=shark.2a.pl)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <giecrilj@HIDDEN>) id 1mHbsz-0005dn-E2
 for 50097 <at> debbugs.gnu.org; Sat, 21 Aug 2021 21:02:53 -0400
Received: from wrasse.2a.pl (wrasse.2a.pl [213.77.90.7])
 by shark.2a.pl (Postfix) with ESMTP id 947091750808;
 Sun, 22 Aug 2021 03:02:47 +0200 (CEST)
X-Virus-Scanned: amavisd-new at 2a.pl
Received: from shark.2a.pl ([213.77.90.2])
 by wrasse.2a.pl (wrasse.2a.pl [213.77.90.7]) (amavisd-new, port 10024)
 with ESMTP id zeRYhtVVvMLH; Sun, 22 Aug 2021 03:02:45 +0200 (CEST)
Received: from localhost.localdomain (unknown [10.8.1.26])
 by shark.2a.pl (Postfix) with ESMTPSA id 6C9FD175083A;
 Sun, 22 Aug 2021 03:02:45 +0200 (CEST)
From: Krzysztof =?utf-8?B?xbtlbGVjaG93c2tp?= <giecrilj@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>, Jim Meyering <jim@HIDDEN>
Subject: Re: bug#50097: gzip: add "--keep" option to keep original files
 unchanged
Date: Sun, 22 Aug 2021 03:02:41 +0200
Message-ID: <1715184.rXjuHfsrS2@HIDDEN>
In-Reply-To: <CA+8g5KEk40o5WmFH_MxiYAeU4_ttnjfh_-eJ9w=qRg3DuRpTxg@HIDDEN>
References: <1360423274-17560-1-git-send-email-rodrigo@HIDDEN>
 <472c3237-76e7-15fa-d3d2-2c084b96c117@HIDDEN>
 <CA+8g5KEk40o5WmFH_MxiYAeU4_ttnjfh_-eJ9w=qRg3DuRpTxg@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 50097
Cc: Rodrigo Campos <rodrigo@HIDDEN>, 50097 <at> debbugs.gnu.org,
 Antonio Diaz Diaz <antonio@HIDDEN>
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: -1.0 (-)

Dnia sobota, 21 sierpnia 2021 15:55:45 CEST Jim Meyering pisze:
> I.e., we have to weigh "what could go wrong?" against "what would be
> improved?" In this case, the weights are small on each side. That alone
> argues against making a semantics-changing modification to such a tool.

The bad weight on the "for" side is 0, the counterexamples are unconvincing.

BR,
Chris







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

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


Received: (at 50097) by debbugs.gnu.org; 21 Aug 2021 13:56:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 21 09:56:05 2021
Received: from localhost ([127.0.0.1]:37586 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mHRTh-0000Zi-9T
	for submit <at> debbugs.gnu.org; Sat, 21 Aug 2021 09:56:05 -0400
Received: from mail-wm1-f47.google.com ([209.85.128.47]:52775)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <meyering@HIDDEN>) id 1mHRTf-0000ZE-4t
 for 50097 <at> debbugs.gnu.org; Sat, 21 Aug 2021 09:56:03 -0400
Received: by mail-wm1-f47.google.com with SMTP id f10so7587429wml.2
 for <50097 <at> debbugs.gnu.org>; Sat, 21 Aug 2021 06:56:03 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc:content-transfer-encoding;
 bh=VptfGyau7hNCq4FyZ2lkA+cVhRLJvWGmfy/wB+OYUaU=;
 b=D/mat7dKZsmJSdSBzE8bGysC5fx8tUsaonGT49nxniVPu3Xu7E3OR+L9SwaOz0GhNZ
 Axd4AYLvq0nLzGAyRKGEJEFbC+/tBLNkRAm576qeBVncVbmeKQqEH5D0AqfOIYEBess3
 QxuaOgIxSCZbv1C6XjcoxAxk5l73YbXuVlvzjlXZ6AoZRjmIDR3osE3pQtYmjm5BmNmU
 tV6UboxJQv3Z+DNXrtUwWjRlcM3RHg/qh89xP3+3c/YpKcv+FKw4PJEEsTJ3eNsQ45Bz
 Pn2trDu89AMsE1SrRPYr23XvwQvHa7uH4U1tjPsiRLOsy+pMOT2Jgs4Q2vX8BniWOO0P
 Q/Gg==
X-Gm-Message-State: AOAM532EJEfrKFk9OQl/dHYO1j5kGu7WYe1RNX6eBhR+hG1Hk6og3avm
 0qan8bL1MkN0P5QAIrJosluitUMtpUBYaUssegU=
X-Google-Smtp-Source: ABdhPJzhohsniIdx4dGtAN5ykNjOkhzW5Eb1o3Ogat5jPbC8ER3MMJRIUAKGygPUhEsr5sW9TqX0GhZWqdEk7pjsDrM=
X-Received: by 2002:a1c:7902:: with SMTP id l2mr8557468wme.71.1629554157333;
 Sat, 21 Aug 2021 06:55:57 -0700 (PDT)
MIME-Version: 1.0
References: <1360423274-17560-1-git-send-email-rodrigo@HIDDEN>
 <1752301.2IhDPmW0rR@HIDDEN>
 <7c804068-69bc-5a6e-e1d3-6be36eb3b1ec@HIDDEN>
 <3241579.PABdIOhPXZ@HIDDEN>
 <472c3237-76e7-15fa-d3d2-2c084b96c117@HIDDEN>
In-Reply-To: <472c3237-76e7-15fa-d3d2-2c084b96c117@HIDDEN>
From: Jim Meyering <jim@HIDDEN>
Date: Sat, 21 Aug 2021 15:55:45 +0200
Message-ID: <CA+8g5KEk40o5WmFH_MxiYAeU4_ttnjfh_-eJ9w=qRg3DuRpTxg@HIDDEN>
Subject: Re: bug#50097: gzip: add "--keep" option to keep original files
 unchanged
To: Paul Eggert <eggert@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 50097
Cc: =?UTF-8?Q?Krzysztof_=C5=BBelechowski?= <giecrilj@HIDDEN>,
 50097 <at> debbugs.gnu.org, Antonio Diaz Diaz <antonio@HIDDEN>,
 Rodrigo Campos <rodrigo@HIDDEN>
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: -0.5 (/)

On Fri, Aug 20, 2021 at 5:16 PM Paul Eggert <eggert@HIDDEN> wrote:
> On 8/20/21 7:52 AM, Krzysztof =C5=BBelechowski wrote:
>
> >> echo hello >a
> >> ln a b
> >> gzip -k b && gzip -cd b.gz >>b
> >>
> >> This would trash 'a' if gzip -k succeeded. (Same with 'ln -s'.)
> >
> > The appending redirection operator has nothing to do with gzip.
>
> That's true even without -k: if plain 'gzip b' succeeded in this case,
> any problem that the user ran into later would have nothing to do with
> gzip. Plain 'gzip b' ignores 'b' here, not because compressing 'b' would
> cause any problem with gzip itself, but because it could cause confusion
> *later*.
>
>
> > My normal usage of (hard) links is as follows:
> > Create a file page.txt. Link it to page.html.
> > Want to view? Open page.html.
> > Want to edit? Open page.txt.
> > Want to attach? gzip -k page.html =E2=80=A6 oops.
>
> Oh my. That is ... unusual. Let's see if others chime in about whether
> this usage would justify changing the behavior of gzip -k.

We have decades of history across gzip, bzip2 and xz for the current
semantics of -k.
Generally, we have an obligation to try hard to avoid changing
semantics of existing options.
I.e., we have to weigh "what could go wrong?" against "what would be improv=
ed?"
In this case, the weights are small on each side. That alone argues against
making a semantics-changing modification to such a tool.

To compress a single file and keep the original, one can always read
it via standard input.

To summarize, while tempting to make the change,
it feels like too small a gain to justify changing semantics in a tool
like gzip.




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

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


Received: (at 50097) by debbugs.gnu.org; 20 Aug 2021 15:18:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 20 11:18:59 2021
Received: from localhost ([127.0.0.1]:35347 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mH6IN-0002sB-Bz
	for submit <at> debbugs.gnu.org; Fri, 20 Aug 2021 11:18:59 -0400
Received: from shark2.2a.pl ([213.77.90.2]:62572 helo=shark.2a.pl)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <giecrilj@HIDDEN>) id 1mH6IL-0002ry-0N
 for 50097 <at> debbugs.gnu.org; Fri, 20 Aug 2021 11:18:57 -0400
Received: from wrasse.2a.pl (wrasse.2a.pl [213.77.90.7])
 by shark.2a.pl (Postfix) with ESMTP id 4671A175080A;
 Fri, 20 Aug 2021 17:18:51 +0200 (CEST)
X-Virus-Scanned: amavisd-new at 2a.pl
Received: from shark.2a.pl ([213.77.90.2])
 by wrasse.2a.pl (wrasse.2a.pl [213.77.90.7]) (amavisd-new, port 10024)
 with ESMTP id 5W3yzqOyoTWS; Fri, 20 Aug 2021 17:18:48 +0200 (CEST)
Received: from localhost.localdomain (unknown [10.8.1.26])
 by shark.2a.pl (Postfix) with ESMTPSA id 7F8C11750809;
 Fri, 20 Aug 2021 17:18:49 +0200 (CEST)
From: Krzysztof =?utf-8?B?xbtlbGVjaG93c2tp?= <giecrilj@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
Subject: Re: bug#50097: gzip: add "--keep" option to keep original files
 unchanged
Date: Fri, 20 Aug 2021 17:18:49 +0200
Message-ID: <5800909.0VZOdOMcSb@HIDDEN>
In-Reply-To: <472c3237-76e7-15fa-d3d2-2c084b96c117@HIDDEN>
References: <1360423274-17560-1-git-send-email-rodrigo@HIDDEN>
 <3241579.PABdIOhPXZ@HIDDEN>
 <472c3237-76e7-15fa-d3d2-2c084b96c117@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 50097
Cc: Rodrigo Campos <rodrigo@HIDDEN>, 50097 <at> debbugs.gnu.org,
 Antonio Diaz Diaz <antonio@HIDDEN>
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: -1.0 (-)

Dnia pi=C4=85tek, 20 sierpnia 2021 17:15:43 CEST Paul Eggert pisze:
> On 8/20/21 7:52 AM, Krzysztof =C5=BBelechowski wrote:
> >> echo hello >a
> >> ln a b
> >> gzip -k b && gzip -cd b.gz >>b
> >>=20
> >> This would trash 'a' if gzip -k succeeded. (Same with 'ln -s'.)
> >=20
> > The appending redirection operator has nothing to do with gzip.
>=20
> That's true even without -k: if plain 'gzip b' succeeded in this case,
> any problem that the user ran into later would have nothing to do with
> gzip. Plain 'gzip b' ignores 'b' here, not because compressing 'b' would
> cause any problem with gzip itself, but because it could cause confusion
> *later*.

If plain { gzip b; } succeeded, we have a problem because [a] is compressed=
=20
but not renamed.

Chris









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

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


Received: (at 50097) by debbugs.gnu.org; 20 Aug 2021 15:15:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 20 11:15:52 2021
Received: from localhost ([127.0.0.1]:35332 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mH6FL-0001O5-V5
	for submit <at> debbugs.gnu.org; Fri, 20 Aug 2021 11:15:52 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:57024)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1mH6FK-0001HN-24
 for 50097 <at> debbugs.gnu.org; Fri, 20 Aug 2021 11:15:50 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id A0C7D1600FB;
 Fri, 20 Aug 2021 08:15:44 -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 FAlXW3rQxd8c; Fri, 20 Aug 2021 08:15:44 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id EA11E160101;
 Fri, 20 Aug 2021 08:15:43 -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 uREgDPEEhXjY; Fri, 20 Aug 2021 08:15:43 -0700 (PDT)
Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com
 [172.91.119.151])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id BDC181600FB;
 Fri, 20 Aug 2021 08:15:43 -0700 (PDT)
To: =?UTF-8?Q?Krzysztof_=c5=bbelechowski?= <giecrilj@HIDDEN>
References: <1360423274-17560-1-git-send-email-rodrigo@HIDDEN>
 <1752301.2IhDPmW0rR@HIDDEN>
 <7c804068-69bc-5a6e-e1d3-6be36eb3b1ec@HIDDEN>
 <3241579.PABdIOhPXZ@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Subject: Re: bug#50097: gzip: add "--keep" option to keep original files
 unchanged
Message-ID: <472c3237-76e7-15fa-d3d2-2c084b96c117@HIDDEN>
Date: Fri, 20 Aug 2021 08:15:43 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <3241579.PABdIOhPXZ@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.4 (--)
X-Debbugs-Envelope-To: 50097
Cc: Rodrigo Campos <rodrigo@HIDDEN>, 50097 <at> debbugs.gnu.org,
 Antonio Diaz Diaz <antonio@HIDDEN>
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.4 (---)

On 8/20/21 7:52 AM, Krzysztof =C5=BBelechowski wrote:

>> echo hello >a
>> ln a b
>> gzip -k b && gzip -cd b.gz >>b
>>
>> This would trash 'a' if gzip -k succeeded. (Same with 'ln -s'.)
>=20
> The appending redirection operator has nothing to do with gzip.

That's true even without -k: if plain 'gzip b' succeeded in this case,=20
any problem that the user ran into later would have nothing to do with=20
gzip. Plain 'gzip b' ignores 'b' here, not because compressing 'b' would=20
cause any problem with gzip itself, but because it could cause confusion=20
*later*.


> My normal usage of (hard) links is as follows:
> Create a file page.txt. Link it to page.html.
> Want to view? Open page.html.
> Want to edit? Open page.txt.
> Want to attach? gzip -k page.html =E2=80=A6 oops.

Oh my. That is ... unusual. Let's see if others chime in about whether=20
this usage would justify changing the behavior of gzip -k.




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

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


Received: (at 50097) by debbugs.gnu.org; 20 Aug 2021 14:53:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 20 10:53:07 2021
Received: from localhost ([127.0.0.1]:35307 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mH5tL-0006ME-6F
	for submit <at> debbugs.gnu.org; Fri, 20 Aug 2021 10:53:07 -0400
Received: from shark2.2a.pl ([213.77.90.2]:52216 helo=shark.2a.pl)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <giecrilj@HIDDEN>) id 1mH5tJ-0006Lk-PV
 for 50097 <at> debbugs.gnu.org; Fri, 20 Aug 2021 10:53:06 -0400
Received: from wrasse.2a.pl (wrasse.2a.pl [213.77.90.7])
 by shark.2a.pl (Postfix) with ESMTP id 8ED801750810;
 Fri, 20 Aug 2021 16:52:59 +0200 (CEST)
X-Virus-Scanned: amavisd-new at 2a.pl
Received: from shark.2a.pl ([213.77.90.2])
 by wrasse.2a.pl (wrasse.2a.pl [213.77.90.7]) (amavisd-new, port 10024)
 with ESMTP id Q-akjMKcHh1u; Fri, 20 Aug 2021 16:52:56 +0200 (CEST)
Received: from localhost.localdomain (unknown [10.8.1.26])
 by shark.2a.pl (Postfix) with ESMTPSA id 300D8175080A;
 Fri, 20 Aug 2021 16:52:52 +0200 (CEST)
From: Krzysztof =?utf-8?B?xbtlbGVjaG93c2tp?= <giecrilj@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
Subject: Re: bug#50097: gzip: add "--keep" option to keep original files
 unchanged
Date: Fri, 20 Aug 2021 16:52:50 +0200
Message-ID: <3241579.PABdIOhPXZ@HIDDEN>
In-Reply-To: <7c804068-69bc-5a6e-e1d3-6be36eb3b1ec@HIDDEN>
References: <1360423274-17560-1-git-send-email-rodrigo@HIDDEN>
 <1752301.2IhDPmW0rR@HIDDEN>
 <7c804068-69bc-5a6e-e1d3-6be36eb3b1ec@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 50097
Cc: Rodrigo Campos <rodrigo@HIDDEN>, 50097 <at> debbugs.gnu.org,
 Antonio Diaz Diaz <antonio@HIDDEN>
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: -1.0 (-)

Dnia pi=C4=85tek, 20 sierpnia 2021 16:42:54 CEST Paul Eggert pisze:
> On 8/20/21 5:20 AM, Krzysztof =C5=BBelechowski wrote:
> >> gzip -k b && gzip -cd b.gz >b
> >>=20
> >> which would trash the hard-linked file as well.
> >=20
> > That would replace the content of the file b with the content of the fi=
le
> > b. How bad can that be? ;-)
>=20
> It could be a problem as-is if some other file reads 'a' in the middle
> of the process. And the problem would be more serious in other examples,
> such as:
>=20
> echo hello >a
> ln a b
> gzip -k b && gzip -cd b.gz >>b
>=20
> This would trash 'a' if gzip -k succeeded. (Same with 'ln -s'.)

The appending redirection operator has nothing to do with gzip.  It is a sh=
ell=20
feature. If you need to protect dumb users from themselves, you need to des=
ign=20
and implement { sh -o noclobberlinks; }.

>=20
> >> > Of course one can use -f to go ahead and compress anyway.
> >=20
> > That would silently replace an existing target, which is bad.
>=20
> Sure. The only question here is what things "gzip -k" should be able to
> do, without the things being considered "bad".
>=20
> Perhaps if you gave us the surrounding context; that might help explain
> why it would be useful to change the behavior of gzip -k on links. Bug
> report 50097 seems to start up in the middle of a conversation that I'm
> not privy to.

My normal usage of (hard) links is as follows:
Create a file page.txt. Link it to page.html.
Want to view? Open page.html.
Want to edit? Open page.txt.
Want to attach? gzip -k page.html =E2=80=A6 oops.

See ya,
Chris







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

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


Received: (at 50097) by debbugs.gnu.org; 20 Aug 2021 14:43:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 20 10:43:03 2021
Received: from localhost ([127.0.0.1]:35267 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mH5jb-0003wJ-5W
	for submit <at> debbugs.gnu.org; Fri, 20 Aug 2021 10:43:03 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:52936)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1mH5jZ-0003vo-7W
 for 50097 <at> debbugs.gnu.org; Fri, 20 Aug 2021 10:43:01 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id A407B1600FB;
 Fri, 20 Aug 2021 07:42:55 -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 ZlZgGroAunlM; Fri, 20 Aug 2021 07:42:55 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id E81E3160101;
 Fri, 20 Aug 2021 07:42:54 -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 lc-FLURXz6Cf; Fri, 20 Aug 2021 07:42:54 -0700 (PDT)
Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com
 [172.91.119.151])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id BFFC61600FB;
 Fri, 20 Aug 2021 07:42:54 -0700 (PDT)
To: =?UTF-8?Q?Krzysztof_=c5=bbelechowski?= <giecrilj@HIDDEN>
References: <1360423274-17560-1-git-send-email-rodrigo@HIDDEN>
 <12753657.QUdQHgIj5r@HIDDEN>
 <d35c52ea-6b4c-6433-88cc-76a1badfc591@HIDDEN>
 <1752301.2IhDPmW0rR@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Subject: Re: bug#50097: gzip: add "--keep" option to keep original files
 unchanged
Message-ID: <7c804068-69bc-5a6e-e1d3-6be36eb3b1ec@HIDDEN>
Date: Fri, 20 Aug 2021 07:42:54 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <1752301.2IhDPmW0rR@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.4 (--)
X-Debbugs-Envelope-To: 50097
Cc: Rodrigo Campos <rodrigo@HIDDEN>, 50097 <at> debbugs.gnu.org,
 Antonio Diaz Diaz <antonio@HIDDEN>
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.4 (---)

On 8/20/21 5:20 AM, Krzysztof =C5=BBelechowski wrote:
>> gzip -k b && gzip -cd b.gz >b
>>
>> which would trash the hard-linked file as well.
> That would replace the content of the file b with the content of the fi=
le b.
> How bad can that be? ;-)

It could be a problem as-is if some other file reads 'a' in the middle=20
of the process. And the problem would be more serious in other examples,=20
such as:

echo hello >a
ln a b
gzip -k b && gzip -cd b.gz >>b

This would trash 'a' if gzip -k succeeded. (Same with 'ln -s'.)

>> > Of course one can use -f to go ahead and compress anyway.
>=20
> That would silently replace an existing target, which is bad.

Sure. The only question here is what things "gzip -k" should be able to=20
do, without the things being considered "bad".

Perhaps if you gave us the surrounding context; that might help explain=20
why it would be useful to change the behavior of gzip -k on links. Bug=20
report 50097 seems to start up in the middle of a conversation that I'm=20
not privy to.




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

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


Received: (at 50097) by debbugs.gnu.org; 20 Aug 2021 12:31:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 20 08:31:49 2021
Received: from localhost ([127.0.0.1]:33124 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mH3gb-000255-7B
	for submit <at> debbugs.gnu.org; Fri, 20 Aug 2021 08:31:49 -0400
Received: from shark2.2a.pl ([213.77.90.2]:63373 helo=shark.2a.pl)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <giecrilj@HIDDEN>) id 1mH3gZ-00024o-Cu
 for 50097 <at> debbugs.gnu.org; Fri, 20 Aug 2021 08:31:47 -0400
Received: from wrasse.2a.pl (wrasse.2a.pl [213.77.90.7])
 by shark.2a.pl (Postfix) with ESMTP id 975E2175080E;
 Fri, 20 Aug 2021 14:31:41 +0200 (CEST)
X-Virus-Scanned: amavisd-new at 2a.pl
Received: from shark.2a.pl ([213.77.90.2])
 by wrasse.2a.pl (wrasse.2a.pl [213.77.90.7]) (amavisd-new, port 10024)
 with ESMTP id 4ZKGr_mNAGHC; Fri, 20 Aug 2021 14:31:38 +0200 (CEST)
Received: from localhost.localdomain (unknown [10.8.1.26])
 by shark.2a.pl (Postfix) with ESMTPSA id E9902175080B;
 Fri, 20 Aug 2021 14:31:39 +0200 (CEST)
From: Krzysztof =?utf-8?B?xbtlbGVjaG93c2tp?= <giecrilj@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
Subject: Re: bug#50097: gzip: add "--keep" option to keep original files
 unchanged
Date: Fri, 20 Aug 2021 14:31:39 +0200
Message-ID: <3320735.Z4pPx1rYXt@HIDDEN>
In-Reply-To: <d35c52ea-6b4c-6433-88cc-76a1badfc591@HIDDEN>
References: <1360423274-17560-1-git-send-email-rodrigo@HIDDEN>
 <12753657.QUdQHgIj5r@HIDDEN>
 <d35c52ea-6b4c-6433-88cc-76a1badfc591@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 50097
Cc: Rodrigo Campos <rodrigo@HIDDEN>, 50097 <at> debbugs.gnu.org,
 Antonio Diaz Diaz <antonio@HIDDEN>
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: -1.0 (-)

Dnia czwartek, 19 sierpnia 2021 23:32:44 CEST Paul Eggert pisze:
> On 8/19/21 1:43 PM, Krzysztof =C5=BBelechowski wrote:
> > The command { gzip b; } fails because it would compress [a] without
> > renaming it.
> > The command { gzip -k b; } would not compress [a], so there is no reason
> > to
> > fail.
> Of course one can use -f to go ahead and compress anyway.

That would silently replace an existing target, which is bad.








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

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


Received: (at 50097) by debbugs.gnu.org; 20 Aug 2021 12:20:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 20 08:20:49 2021
Received: from localhost ([127.0.0.1]:33118 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mH3Vx-0001jV-7E
	for submit <at> debbugs.gnu.org; Fri, 20 Aug 2021 08:20:49 -0400
Received: from shark2.2a.pl ([213.77.90.2]:55445 helo=shark.2a.pl)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <giecrilj@HIDDEN>) id 1mH3Vv-0001jF-Sy
 for 50097 <at> debbugs.gnu.org; Fri, 20 Aug 2021 08:20:48 -0400
Received: from wrasse.2a.pl (wrasse.2a.pl [213.77.90.7])
 by shark.2a.pl (Postfix) with ESMTP id 2E1B31750809;
 Fri, 20 Aug 2021 14:20:41 +0200 (CEST)
X-Virus-Scanned: amavisd-new at 2a.pl
Received: from shark.2a.pl ([213.77.90.2])
 by wrasse.2a.pl (wrasse.2a.pl [213.77.90.7]) (amavisd-new, port 10024)
 with ESMTP id ODl5S2dsC2Xw; Fri, 20 Aug 2021 14:20:38 +0200 (CEST)
Received: from localhost.localdomain (unknown [10.8.1.26])
 by shark.2a.pl (Postfix) with ESMTPSA id 6D7F7175080E;
 Fri, 20 Aug 2021 14:20:39 +0200 (CEST)
From: Krzysztof =?utf-8?B?xbtlbGVjaG93c2tp?= <giecrilj@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
Subject: Re: bug#50097: gzip: add "--keep" option to keep original files
 unchanged
Date: Fri, 20 Aug 2021 14:20:36 +0200
Message-ID: <1752301.2IhDPmW0rR@HIDDEN>
In-Reply-To: <d35c52ea-6b4c-6433-88cc-76a1badfc591@HIDDEN>
References: <1360423274-17560-1-git-send-email-rodrigo@HIDDEN>
 <12753657.QUdQHgIj5r@HIDDEN>
 <d35c52ea-6b4c-6433-88cc-76a1badfc591@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 50097
Cc: Rodrigo Campos <rodrigo@HIDDEN>, 50097 <at> debbugs.gnu.org,
 Antonio Diaz Diaz <antonio@HIDDEN>
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: -1.0 (-)

Dnia czwartek, 19 sierpnia 2021 23:32:44 CEST Paul Eggert pisze:
> On 8/19/21 1:43 PM, Krzysztof =C5=BBelechowski wrote:
> > The command { gzip b; } fails because it would compress [a] without
> > renaming it.
> > The command { gzip -k b; } would not compress [a], so there is no reason
> > to
> > fail.
>=20
> There is a safety reason to fail. A naive user might do this:
>=20
> gzip -k b && gzip -cd b.gz >b
>=20
> which would trash the hard-linked file as well.

That would replace the content of the file b with the content of the file b=
=2E =20
How bad can that be? ;-)

Chris








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

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


Received: (at 50097) by debbugs.gnu.org; 19 Aug 2021 21:32:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 19 17:32:59 2021
Received: from localhost ([127.0.0.1]:60874 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mGpel-0006rk-KY
	for submit <at> debbugs.gnu.org; Thu, 19 Aug 2021 17:32:59 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:38520)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1mGpej-0006rV-6z
 for 50097 <at> debbugs.gnu.org; Thu, 19 Aug 2021 17:32:57 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 254361600FC;
 Thu, 19 Aug 2021 14:32:51 -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 1fynx22bt_7d; Thu, 19 Aug 2021 14:32:46 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6E02D160101;
 Thu, 19 Aug 2021 14:32:46 -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 rWPf5_MWyss9; Thu, 19 Aug 2021 14:32:46 -0700 (PDT)
Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com
 [172.91.119.151])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 3B7381600FC;
 Thu, 19 Aug 2021 14:32:46 -0700 (PDT)
To: =?UTF-8?Q?Krzysztof_=c5=bbelechowski?= <giecrilj@HIDDEN>
References: <1360423274-17560-1-git-send-email-rodrigo@HIDDEN>
 <611E61B9.5040806@HIDDEN> <ad9d1420-7691-97ac-e1b0-f36041a80718@HIDDEN>
 <12753657.QUdQHgIj5r@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Subject: Re: bug#50097: gzip: add "--keep" option to keep original files
 unchanged
Message-ID: <d35c52ea-6b4c-6433-88cc-76a1badfc591@HIDDEN>
Date: Thu, 19 Aug 2021 14:32:44 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <12753657.QUdQHgIj5r@HIDDEN>
Content-Type: multipart/mixed; boundary="------------6EB630EFB49F70682194E252"
Content-Language: en-US
X-Spam-Score: -2.4 (--)
X-Debbugs-Envelope-To: 50097
Cc: Rodrigo Campos <rodrigo@HIDDEN>, 50097 <at> debbugs.gnu.org,
 Antonio Diaz Diaz <antonio@HIDDEN>
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.4 (---)

This is a multi-part message in MIME format.
--------------6EB630EFB49F70682194E252
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

On 8/19/21 1:43 PM, Krzysztof =C5=BBelechowski wrote:
> The command { gzip b; } fails because it would compress [a] without ren=
aming
> it.
> The command { gzip -k b; } would not compress [a], so there is no reaso=
n to
> fail.

There is a safety reason to fail. A naive user might do this:

gzip -k b && gzip -cd b.gz >b

which would trash the hard-linked file as well.

There's a similar safety issue with symbolic links:

$ ln -s a b
$ touch a
$ gzip -k b && gzip -cd b.gz >b
gzip: b: Too many levels of symbolic links

where gzip's failure prevents the naive user from trashing the linked-to=20
file.

Of course one can use -f to go ahead and compress anyway.

Similar diagnostics say "file ignored" or "ignored", and that is clearer=20
than saying "unchanged", so I installed the attached patch.

--------------6EB630EFB49F70682194E252
Content-Type: text/x-patch; charset=UTF-8;
 name="0001-gzip-clarify-other-links-diagnostic.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename="0001-gzip-clarify-other-links-diagnostic.patch"

=46rom 4b2f69227db5739b63e22a72f6db2b13972affb5 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@HIDDEN>
Date: Thu, 19 Aug 2021 14:26:38 -0700
Subject: [PATCH] gzip: clarify "other links" diagnostic

* gzip.c (treat_file): Instead of saying
"gzip: FOO has 1 other link  -- unchanged", say
"gzip: FOO has 1 other link -- file ignored".
This is clearer when -k is also used (Bug#50097).
---
 gzip.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gzip.c b/gzip.c
index 0123f82..f75b614 100644
--- a/gzip.c
+++ b/gzip.c
@@ -942,10 +942,10 @@ local void treat_file(iname)
               }
             if (2 <=3D istat.st_nlink)
               {
-                WARN ((stderr, "%s: %s has %lu other link%c -- unchanged=
\n",
+                WARN ((stderr, "%s: %s has %lu other link%s -- file igno=
red\n",
                        program_name, ifname,
                        (unsigned long int) istat.st_nlink - 1,
-                       istat.st_nlink =3D=3D 2 ? ' ' : 's'));
+                       istat.st_nlink =3D=3D 2 ? "" : "s"));
                 close (ifd);
                 return;
               }
--=20
2.30.2


--------------6EB630EFB49F70682194E252--




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

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


Received: (at 50097) by debbugs.gnu.org; 19 Aug 2021 20:44:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 19 16:44:13 2021
Received: from localhost ([127.0.0.1]:60854 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mGotZ-0005dn-OW
	for submit <at> debbugs.gnu.org; Thu, 19 Aug 2021 16:44:13 -0400
Received: from shark2.2a.pl ([213.77.90.2]:51099 helo=shark.2a.pl)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <giecrilj@HIDDEN>) id 1mGotX-0005dZ-SD
 for 50097 <at> debbugs.gnu.org; Thu, 19 Aug 2021 16:44:12 -0400
Received: from wrasse.2a.pl (wrasse.2a.pl [213.77.90.7])
 by shark.2a.pl (Postfix) with ESMTP id F157C175089E;
 Thu, 19 Aug 2021 22:44:05 +0200 (CEST)
X-Virus-Scanned: amavisd-new at 2a.pl
Received: from shark.2a.pl ([213.77.90.2])
 by wrasse.2a.pl (wrasse.2a.pl [213.77.90.7]) (amavisd-new, port 10024)
 with ESMTP id 68RQQYwXEYjI; Thu, 19 Aug 2021 22:44:03 +0200 (CEST)
Received: from localhost.localdomain (unknown [10.8.1.26])
 by shark.2a.pl (Postfix) with ESMTPSA id 31A4717508B9;
 Thu, 19 Aug 2021 22:44:04 +0200 (CEST)
From: Krzysztof =?utf-8?B?xbtlbGVjaG93c2tp?= <giecrilj@HIDDEN>
To: Antonio Diaz Diaz <antonio@HIDDEN>, Rodrigo Campos <rodrigo@HIDDEN>
Subject: Re: bug#50097: gzip: add "--keep" option to keep original files
 unchanged
Date: Thu, 19 Aug 2021 22:43:54 +0200
Message-ID: <12753657.QUdQHgIj5r@HIDDEN>
In-Reply-To: <ad9d1420-7691-97ac-e1b0-f36041a80718@HIDDEN>
References: <1360423274-17560-1-git-send-email-rodrigo@HIDDEN>
 <611E61B9.5040806@HIDDEN> <ad9d1420-7691-97ac-e1b0-f36041a80718@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 50097
Cc: 50097 <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: -1.0 (-)

Dnia czwartek, 19 sierpnia 2021 17:28:51 CEST Rodrigo Campos pisze:
> On 8/19/21 3:50 PM, Antonio Diaz Diaz wrote:
> > Rodrigo Campos wrote:
> > $ touch a && ln a b && ls -go *
> > -rw-r--r-- 2 0 Aug 19 15:29 a
> > -rw-r--r-- 2 0 Aug 19 15:29 b
> > $ gzip -k b
> > gzip: b has 1 other link  -- unchanged
> 
> Yeap, but the same happens if you run this instead: gzip b (i.e. without
> -k).
> 
> It is not the -k flag that gets in the way. This is what happens in
> gzip, even without using the flag.
> 
> Am I missing something?

The command { gzip b; } fails because it would compress [a] without renaming 
it.
The command { gzip -k b; } would not compress [a], so there is no reason to 
fail.
HTH,
Chris






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

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


Received: (at 50097) by debbugs.gnu.org; 19 Aug 2021 15:28:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 19 11:28:56 2021
Received: from localhost ([127.0.0.1]:60669 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mGjyS-00080c-BJ
	for submit <at> debbugs.gnu.org; Thu, 19 Aug 2021 11:28:56 -0400
Received: from alerce.blitiri.com.ar ([51.15.5.42]:41216 helo=sdfg.com.ar)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rodrigo@HIDDEN>) id 1mGjyQ-00080T-3g
 for 50097 <at> debbugs.gnu.org; Thu, 19 Aug 2021 11:28:54 -0400
Received: from [192.168.179.35] by sdfg.com.ar (chasquid) with ESMTPSA
 tls TLS_AES_128_GCM_SHA256
 (over submission+TLS, TLS-1.3, envelope from "rodrigo@HIDDEN")
 ; Thu, 19 Aug 2021 15:28:52 +0000
Subject: Re: bug#50097: gzip: add "--keep" option to keep original files
 unchanged
To: Antonio Diaz Diaz <antonio@HIDDEN>
References: <1360423274-17560-1-git-send-email-rodrigo@HIDDEN>
 <2820687.C3xeM7Lg9J@HIDDEN>
 <1e96708e-d2c1-9a93-8c13-9d652001018d@HIDDEN>
 <1928330.KlpHA2aml8@HIDDEN>
 <92fd7db6-ae90-e2ac-72d5-730d2cfe077f@HIDDEN> <611E61B9.5040806@HIDDEN>
From: Rodrigo Campos <rodrigo@HIDDEN>
Message-ID: <ad9d1420-7691-97ac-e1b0-f36041a80718@HIDDEN>
Date: Thu, 19 Aug 2021 17:28:51 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.12.0
MIME-Version: 1.0
In-Reply-To: <611E61B9.5040806@HIDDEN>
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.1 (/)
X-Debbugs-Envelope-To: 50097
Cc: giecrilj@HIDDEN, 50097 <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: -1.1 (-)

On 8/19/21 3:50 PM, Antonio Diaz Diaz wrote:
> Rodrigo Campos wrote:
>>> { >>a && ln a b && gzip -k b
>>> }
>>
>> Exactly, the original file is unaffected, therefore nothing to fix in
>> this specific patch. Note the same happens without "-k" too.
> 
> I think the point of Krzysztof is that the patch is incomplete because, 

Oh, thanks for chiming in :)

> in addition to keep the original file, it should also allow the 
> (de)compression of links without forcing the user to type also '-f' for 
> no apparent reason.

It is not the -k flag that disallows this.

> 
> $ touch a && ln a b && ls -go *
> -rw-r--r-- 2 0 Aug 19 15:29 a
> -rw-r--r-- 2 0 Aug 19 15:29 b
> $ gzip -k b
> gzip: b has 1 other link  -- unchanged

Yeap, but the same happens if you run this instead: gzip b (i.e. without 
-k).

It is not the -k flag that gets in the way. This is what happens in 
gzip, even without using the flag.

Am I missing something?




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

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


Received: (at 50097) by debbugs.gnu.org; 19 Aug 2021 13:51:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 19 09:51:50 2021
Received: from localhost ([127.0.0.1]:58883 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mGiSU-0004yx-Br
	for submit <at> debbugs.gnu.org; Thu, 19 Aug 2021 09:51:50 -0400
Received: from eggs.gnu.org ([209.51.188.92]:59004)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <antonio@HIDDEN>) id 1mGiSS-0004yb-Uf
 for 50097 <at> debbugs.gnu.org; Thu, 19 Aug 2021 09:51:49 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:45340)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <antonio@HIDDEN>)
 id 1mGiSI-0005zv-CF; Thu, 19 Aug 2021 09:51:40 -0400
Received: from 149.red-81-44-207.dynamicip.rima-tde.net ([81.44.207.149]:46465
 helo=[192.168.1.2])
 by fencepost.gnu.org with esmtpsa (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256)
 (Exim 4.90_1) (envelope-from <antonio@HIDDEN>)
 id 1mGiSG-0004Al-B2; Thu, 19 Aug 2021 09:51:38 -0400
Message-ID: <611E61B9.5040806@HIDDEN>
Date: Thu, 19 Aug 2021 15:50:49 +0200
From: Antonio Diaz Diaz <antonio@HIDDEN>
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US;
 rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14
MIME-Version: 1.0
To: Rodrigo Campos <rodrigo@HIDDEN>
Subject: Re: bug#50097: gzip: add "--keep" option to keep original files
 unchanged
References: <1360423274-17560-1-git-send-email-rodrigo@HIDDEN>
 <2820687.C3xeM7Lg9J@HIDDEN>
 <1e96708e-d2c1-9a93-8c13-9d652001018d@HIDDEN>
 <1928330.KlpHA2aml8@HIDDEN>
 <92fd7db6-ae90-e2ac-72d5-730d2cfe077f@HIDDEN>
In-Reply-To: <92fd7db6-ae90-e2ac-72d5-730d2cfe077f@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.4 (--)
X-Debbugs-Envelope-To: 50097
Cc: giecrilj@HIDDEN, 50097 <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.4 (---)

Rodrigo Campos wrote:
>> { >>a && ln a b && gzip -k b
>> }
>
> Exactly, the original file is unaffected, therefore nothing to fix in
> this specific patch. Note the same happens without "-k" too.

I think the point of Krzysztof is that the patch is incomplete because, in 
addition to keep the original file, it should also allow the (de)compression 
of links without forcing the user to type also '-f' for no apparent reason.

$ touch a && ln a b && ls -go *
-rw-r--r-- 2 0 Aug 19 15:29 a
-rw-r--r-- 2 0 Aug 19 15:29 b
$ gzip -k b
gzip: b has 1 other link  -- unchanged
$ lzip -k b
$ ls -go *
-rw-r--r-- 2  0 Aug 19 15:29 a
-rw-r--r-- 2  0 Aug 19 15:29 b
-rw-r--r-- 1 36 Aug 19 15:29 b.lz
$ gzip -k -f b
$ ls -go *
-rw-r--r-- 2  0 Aug 19 15:29 a
-rw-r--r-- 2  0 Aug 19 15:29 b
-rw-r--r-- 1 22 Aug 19 15:29 b.gz
-rw-r--r-- 1 36 Aug 19 15:29 b.lz


Best regards,
Antonio.




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

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


Received: (at submit) by debbugs.gnu.org; 19 Aug 2021 12:01:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 19 08:01:32 2021
Received: from localhost ([127.0.0.1]:58742 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mGgjk-0002Cn-8B
	for submit <at> debbugs.gnu.org; Thu, 19 Aug 2021 08:01:32 -0400
Received: from lists.gnu.org ([209.51.188.17]:52250)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rodrigo@HIDDEN>) id 1mGgji-0002Cf-8x
 for submit <at> debbugs.gnu.org; Thu, 19 Aug 2021 08:01:30 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:54326)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rodrigo@HIDDEN>)
 id 1mGgjg-0008QT-Vh
 for bug-gzip@HIDDEN; Thu, 19 Aug 2021 08:01:30 -0400
Received: from alerce.blitiri.com.ar ([2001:bc8:228b:9000::1]:47894
 helo=sdfg.com.ar)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <rodrigo@HIDDEN>)
 id 1mGgjf-0002kJ-2e
 for bug-gzip@HIDDEN; Thu, 19 Aug 2021 08:01:28 -0400
Received: from [IPv6:2a02:8109:9880:57f0:ba7c:cdd5:fff7:623c]
 by sdfg.com.ar (chasquid) with ESMTPSA tls TLS_AES_128_GCM_SHA256
 (over submission+TLS, TLS-1.3, envelope from "rodrigo@HIDDEN")
 ; Thu, 19 Aug 2021 12:01:17 +0000
Subject: Re: gzip: add "--keep" option to keep original files unchanged
To: =?UTF-8?Q?Krzysztof_=c5=bbelechowski?= <giecrilj@HIDDEN>,
 bug-gzip@HIDDEN
References: <1360423274-17560-1-git-send-email-rodrigo@HIDDEN>
 <2820687.C3xeM7Lg9J@HIDDEN>
 <1e96708e-d2c1-9a93-8c13-9d652001018d@HIDDEN>
 <1928330.KlpHA2aml8@HIDDEN>
From: Rodrigo Campos <rodrigo@HIDDEN>
Message-ID: <92fd7db6-ae90-e2ac-72d5-730d2cfe077f@HIDDEN>
Date: Thu, 19 Aug 2021 14:01:16 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.12.0
MIME-Version: 1.0
In-Reply-To: <1928330.KlpHA2aml8@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2001:bc8:228b:9000::1;
 envelope-from=rodrigo@HIDDEN; helo=sdfg.com.ar
X-Spam_score_int: -44
X-Spam_score: -4.5
X-Spam_bar: ----
X-Spam_report: (-4.5 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-2.591,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.5 (-)
X-Debbugs-Envelope-To: submit
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: -2.5 (--)

On 8/19/21 2:29 AM, Krzysztof Żelechowski wrote:

> 
>> The patch just makes sure the original files are
>> unchanged, as the topic says, and that is working as far as I understand.
> 
> It is >
>> Also, can you please provide specific steps to reproduce?
> 
> { >>a && ln a b && gzip -k b
> }

Exactly, the original file is unaffected, therefore nothing to fix in 
this specific patch. Note the same happens without "-k" too.

If this is a bug, please report with the regular methods. Don't revive 
this unrelated thread from the mailing list :)


Best,
Rodrigo




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

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


Received: (at submit) by debbugs.gnu.org; 19 Aug 2021 00:30:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 18 20:30:17 2021
Received: from localhost ([127.0.0.1]:57790 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mGVwn-0005Yf-Hu
	for submit <at> debbugs.gnu.org; Wed, 18 Aug 2021 20:30:17 -0400
Received: from lists.gnu.org ([209.51.188.17]:57794)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <giecrilj@HIDDEN>) id 1mGVwi-0005YW-95
 for submit <at> debbugs.gnu.org; Wed, 18 Aug 2021 20:30:15 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:60190)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <giecrilj@HIDDEN>)
 id 1mGVwh-0007bz-LL
 for bug-gzip@HIDDEN; Wed, 18 Aug 2021 20:30:12 -0400
Received: from shark2.2a.pl ([213.77.90.2]:63098 helo=shark.2a.pl)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <giecrilj@HIDDEN>) id 1mGVwf-0005CK-SC
 for bug-gzip@HIDDEN; Wed, 18 Aug 2021 20:30:11 -0400
Received: from wrasse.2a.pl (wrasse.2a.pl [213.77.90.7])
 by shark.2a.pl (Postfix) with ESMTP id A01701750893;
 Thu, 19 Aug 2021 02:29:59 +0200 (CEST)
X-Virus-Scanned: amavisd-new at 2a.pl
Received: from shark.2a.pl ([213.77.90.2])
 by wrasse.2a.pl (wrasse.2a.pl [213.77.90.7]) (amavisd-new, port 10024)
 with ESMTP id g-Ls-FFpsCtu; Thu, 19 Aug 2021 02:29:56 +0200 (CEST)
Received: from localhost.localdomain (unknown [10.8.1.26])
 by shark.2a.pl (Postfix) with ESMTPSA id C645B175089E;
 Thu, 19 Aug 2021 02:29:57 +0200 (CEST)
From: Krzysztof =?utf-8?B?xbtlbGVjaG93c2tp?= <giecrilj@HIDDEN>
To: bug-gzip@HIDDEN, Rodrigo Campos <rodrigo@HIDDEN>
Subject: Re: gzip: add "--keep" option to keep original files unchanged
Date: Thu, 19 Aug 2021 02:29:52 +0200
Message-ID: <1928330.KlpHA2aml8@HIDDEN>
In-Reply-To: <1e96708e-d2c1-9a93-8c13-9d652001018d@HIDDEN>
References: <1360423274-17560-1-git-send-email-rodrigo@HIDDEN>
 <2820687.C3xeM7Lg9J@HIDDEN>
 <1e96708e-d2c1-9a93-8c13-9d652001018d@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
Received-SPF: none client-ip=213.77.90.2; envelope-from=giecrilj@HIDDEN;
 helo=shark.2a.pl
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
 SPF_NONE=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
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 (---)

Dnia czwartek, 19 sierpnia 2021 00:43:26 CEST Rodrigo Campos pisze:
> On 8/17/21 7:43 PM, Krzysztof =C5=BBelechowski wrote:
> > Dnia sobota, 9 lutego 2013 16:21:13 CEST Rodrigo Campos pisze:
> >> Hi,
> >>=20
> >> Please keep me in Cc: since I'm not subscribed.
> >>=20
> >> This path just adds the "--keep" option to keep original files unchang=
ed.
> >> The patch is very simple and I have tried it here (manpage and binary)
> >> and
> >> it seems to work just fine.
> >>=20
> >> I tried to respect the coding style (it is a very small patch, so
> >> hopefully
> >> I did) and the commit format. But I wasn't sure how the commit format =
for
> >> this patch should be. So please let me know which changes should I do.
> >=20
> > This patch has the following problem: it still refuses to zip a file wi=
th
> > multiple links for no reason (the original file is unaffected).
>=20
> Wow, this patch was sent (and applied) ~8 years ago already. Congrats
> for finding the thread :D
>=20
> Can you please explain why, if the original file is not affected, this
> patch is related?=20

This patch allows the original file to be left unaffected.

> The patch just makes sure the original files are
> unchanged, as the topic says, and that is working as far as I understand.

It is.

>=20
>=20
> Also, can you please provide specific steps to reproduce?

{ >>a && ln a b && gzip -k b
}

>=20
>=20
>=20
> Best,
> Rodrigo








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

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


Received: (at submit) by debbugs.gnu.org; 18 Aug 2021 22:43:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 18 18:43:39 2021
Received: from localhost ([127.0.0.1]:57767 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mGUHa-00030V-Sx
	for submit <at> debbugs.gnu.org; Wed, 18 Aug 2021 18:43:39 -0400
Received: from lists.gnu.org ([209.51.188.17]:43872)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rodrigo@HIDDEN>) id 1mGUHY-00030N-Um
 for submit <at> debbugs.gnu.org; Wed, 18 Aug 2021 18:43:38 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:46482)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rodrigo@HIDDEN>)
 id 1mGUHY-0008TG-MQ
 for bug-gzip@HIDDEN; Wed, 18 Aug 2021 18:43:36 -0400
Received: from alerce.blitiri.com.ar ([2001:bc8:228b:9000::1]:55496
 helo=sdfg.com.ar)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <rodrigo@HIDDEN>)
 id 1mGUHW-0007Zs-V9
 for bug-gzip@HIDDEN; Wed, 18 Aug 2021 18:43:36 -0400
Received: from [IPv6:2a02:8109:9880:57f0:ba7c:cdd5:fff7:623c]
 by sdfg.com.ar (chasquid) with ESMTPSA tls TLS_AES_128_GCM_SHA256
 (over submission+TLS, TLS-1.3, envelope from "rodrigo@HIDDEN")
 ; Wed, 18 Aug 2021 22:43:27 +0000
Subject: Re: gzip: add "--keep" option to keep original files unchanged
To: =?UTF-8?Q?Krzysztof_=c5=bbelechowski?= <giecrilj@HIDDEN>,
 bug-gzip@HIDDEN
References: <1360423274-17560-1-git-send-email-rodrigo@HIDDEN>
 <2820687.C3xeM7Lg9J@HIDDEN>
From: Rodrigo Campos <rodrigo@HIDDEN>
Message-ID: <1e96708e-d2c1-9a93-8c13-9d652001018d@HIDDEN>
Date: Thu, 19 Aug 2021 00:43:26 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.12.0
MIME-Version: 1.0
In-Reply-To: <2820687.C3xeM7Lg9J@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2001:bc8:228b:9000::1;
 envelope-from=rodrigo@HIDDEN; helo=sdfg.com.ar
X-Spam_score_int: -38
X-Spam_score: -3.9
X-Spam_bar: ---
X-Spam_report: (-3.9 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-1.961,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.5 (-)
X-Debbugs-Envelope-To: submit
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: -2.5 (--)

On 8/17/21 7:43 PM, Krzysztof Żelechowski wrote:
> Dnia sobota, 9 lutego 2013 16:21:13 CEST Rodrigo Campos pisze:
>> Hi,
>>
>> Please keep me in Cc: since I'm not subscribed.
>>
>> This path just adds the "--keep" option to keep original files unchanged.
>> The patch is very simple and I have tried it here (manpage and binary) and
>> it seems to work just fine.
>>
>> I tried to respect the coding style (it is a very small patch, so hopefully
>> I did) and the commit format. But I wasn't sure how the commit format for
>> this patch should be. So please let me know which changes should I do.
> 
> This patch has the following problem: it still refuses to zip a file with
> multiple links for no reason (the original file is unaffected).

Wow, this patch was sent (and applied) ~8 years ago already. Congrats 
for finding the thread :D

Can you please explain why, if the original file is not affected, this 
patch is related? The patch just makes sure the original files are 
unchanged, as the topic says, and that is working as far as I understand.


Also, can you please provide specific steps to reproduce?



Best,
Rodrigo




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

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


Received: (at submit) by debbugs.gnu.org; 17 Aug 2021 17:44:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 17 13:44:05 2021
Received: from localhost ([127.0.0.1]:54047 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mG389-0005dV-47
	for submit <at> debbugs.gnu.org; Tue, 17 Aug 2021 13:44:05 -0400
Received: from lists.gnu.org ([209.51.188.17]:37362)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <giecrilj@HIDDEN>) id 1mG385-0005dL-UR
 for submit <at> debbugs.gnu.org; Tue, 17 Aug 2021 13:44:02 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:49102)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <giecrilj@HIDDEN>)
 id 1mG385-0008L3-JF
 for bug-gzip@HIDDEN; Tue, 17 Aug 2021 13:44:01 -0400
Received: from shark2.2a.pl ([213.77.90.2]:65163 helo=shark.2a.pl)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <giecrilj@HIDDEN>) id 1mG381-0001qC-LQ
 for bug-gzip@HIDDEN; Tue, 17 Aug 2021 13:44:01 -0400
Received: from wrasse.2a.pl (wrasse.2a.pl [213.77.90.7])
 by shark.2a.pl (Postfix) with ESMTP id E73041750884;
 Tue, 17 Aug 2021 19:43:46 +0200 (CEST)
X-Virus-Scanned: amavisd-new at 2a.pl
Received: from shark.2a.pl ([213.77.90.2])
 by wrasse.2a.pl (wrasse.2a.pl [213.77.90.7]) (amavisd-new, port 10024)
 with ESMTP id xPr6gG7VvuBF; Tue, 17 Aug 2021 19:43:44 +0200 (CEST)
Received: from localhost.localdomain (unknown [10.8.1.26])
 by shark.2a.pl (Postfix) with ESMTPSA id 305E01750892;
 Tue, 17 Aug 2021 19:43:45 +0200 (CEST)
From: Krzysztof =?utf-8?B?xbtlbGVjaG93c2tp?= <giecrilj@HIDDEN>
To: bug-gzip@HIDDEN
Subject: Re: gzip: add "--keep" option to keep original files unchanged
Date: Tue, 17 Aug 2021 19:43:42 +0200
Message-ID: <2820687.C3xeM7Lg9J@HIDDEN>
In-Reply-To: <1360423274-17560-1-git-send-email-rodrigo@HIDDEN>
References: <1360423274-17560-1-git-send-email-rodrigo@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
Received-SPF: none client-ip=213.77.90.2; envelope-from=giecrilj@HIDDEN;
 helo=shark.2a.pl
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
 SPF_NONE=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
Cc: Rodrigo Campos <rodrigo@HIDDEN>
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 (---)

Dnia sobota, 9 lutego 2013 16:21:13 CEST Rodrigo Campos pisze:
> Hi,
> 
> Please keep me in Cc: since I'm not subscribed.
> 
> This path just adds the "--keep" option to keep original files unchanged.
> The patch is very simple and I have tried it here (manpage and binary) and
> it seems to work just fine.
> 
> I tried to respect the coding style (it is a very small patch, so hopefully
> I did) and the commit format. But I wasn't sure how the commit format for
> this patch should be. So please let me know which changes should I do.

This patch has the following problem: it still refuses to zip a file with 
multiple links for no reason (the original file is unaffected).

Please fix,
Chris








Acknowledgement sent to Krzysztof Żelechowski <giecrilj@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gzip@HIDDEN. Full text available.
Report forwarded to bug-gzip@HIDDEN:
bug#50097; 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: Wed, 30 Mar 2022 00:30:02 UTC

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