GNU bug report logs - #40352
cp -a --attributes-only zeroes a file with more than one link

Previous Next

Package: coreutils;

Reported by: Matt Kloss <matt.kloss <at> yandex.com>

Date: Tue, 31 Mar 2020 15:37:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40352 in the body.
You can then email your comments to 40352 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#40352; Package coreutils. (Tue, 31 Mar 2020 15:37:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Matt Kloss <matt.kloss <at> yandex.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 31 Mar 2020 15:37:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Matt Kloss <matt.kloss <at> yandex.com>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: cp -a --attributes-only zeroes a file with more than one link
Date: Tue, 31 Mar 2020 14:32:13 +0200
[Message part 1 (text/html, inline)]

Reply sent to Pádraig Brady <P <at> draigBrady.com>:
You have taken responsibility. (Wed, 01 Apr 2020 12:11:02 GMT) Full text and rfc822 format available.

Notification sent to Matt Kloss <matt.kloss <at> yandex.com>:
bug acknowledged by developer. (Wed, 01 Apr 2020 12:11:02 GMT) Full text and rfc822 format available.

Message #10 received at 40352-done <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Matt Kloss <matt.kloss <at> yandex.com>, 40352-done <at> debbugs.gnu.org
Subject: Re: bug#40352: cp -a --attributes-only zeroes a file with more than
 one link
Date: Wed, 1 Apr 2020 13:10:02 +0100
[Message part 1 (text/plain, inline)]
On 31/03/2020 13:32, Matt Kloss wrote:
>     Hello,
> 
>     When you cp -a --attributes-only a [dest] file which has a more than one
>     “hardlink”, it zeroes the file:

The attached fixes this, which I'll push later.
Marking this as done.
thanks!

Pádraig
[cp-a--attributes-only.patch (text/x-patch, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#40352; Package coreutils. (Fri, 03 Apr 2020 16:50:01 GMT) Full text and rfc822 format available.

Message #13 received at 40352 <at> debbugs.gnu.org (full text, mbox):

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: 40352 <at> debbugs.gnu.org, P <at> draigBrady.com, matt.kloss <at> yandex.com
Subject: Re: bug#40352: cp -a --attributes-only zeroes a file with more than
 one link
Date: Fri, 3 Apr 2020 18:49:45 +0200
On 2020-04-01 14:10, Pádraig Brady wrote:
> On 31/03/2020 13:32, Matt Kloss wrote:
>>     Hello,
>>
>>     When you cp -a --attributes-only a [dest] file which has a more than one
>>     “hardlink”, it zeroes the file:
> 
> The attached fixes this, which I'll push later.
> Marking this as done.

LGTM, thanks!

Have a nice day,
Berny




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 02 May 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 331 days ago.

Previous Next


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