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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Pádraig Brady <P <at> draigBrady.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#40352: closed (cp -a --attributes-only zeroes a file with
 more than one link)
Date: Wed, 01 Apr 2020 12:11:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 1 Apr 2020 13:10:02 +0100
with message-id <140cc649-88db-1f59-6366-c9ef19c8a032 <at> draigBrady.com>
and subject line Re: bug#40352: cp -a --attributes-only zeroes a file with more than one link
has caused the debbugs.gnu.org bug report #40352,
regarding cp -a --attributes-only zeroes a file with more than one link
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
40352: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40352
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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 3 (text/html, inline)]
[Message part 4 (message/rfc822, inline)]
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 5 (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)]

This bug report was last modified 5 years and 53 days ago.

Previous Next


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