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


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)]

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.