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: Matt Kloss <matt.kloss <at> yandex.com>
Subject: bug#40352: closed (Re: bug#40352: 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 bug report

#40352: cp -a --attributes-only zeroes a file with more than one link

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 40352 <at> debbugs.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: 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 3 (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)]
[Message part 5 (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 6 (text/html, inline)]

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.