GNU bug report logs - #47361
mv: extended attributes discarded when moving to a different volume on macOS

Previous Next

Package: coreutils;

Reported by: Daniel Smedegaard Buus <danielbuus <at> gmail.com>

Date: Wed, 24 Mar 2021 12:53:02 UTC

Severity: normal

To reply to this bug, email your comments to 47361 AT debbugs.gnu.org.

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#47361; Package coreutils. (Wed, 24 Mar 2021 12:53:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daniel Smedegaard Buus <danielbuus <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Wed, 24 Mar 2021 12:53:02 GMT) Full text and rfc822 format available.

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

From: Daniel Smedegaard Buus <danielbuus <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: mv: extended attributes discarded when moving to a different volume
 on macOS
Date: Wed, 24 Mar 2021 12:13:06 +0100
[Message part 1 (text/plain, inline)]
Hello :)

I've been using Homebrewed coreutils on my Mac for a while, and recently
switched to MacPorts. With both of these package manager, the version of
`mv` that is built will discard extended attributes when moving an item
from one volume to another, though moving within the same volume the
attributes are retained (I assume because here moving is done by simply
editing an inode). The `mv` version that is bundled with OS X does not have
this shortcoming. My testing with Ubuntu also shows that this is not an
issue there.

I reported the bug to MacPorts, but was told that this is likely an
upstream problem, so I should take it here :) Here's to hoping that's true
:D

To reproduce (here with MacPorts, coreutils 8.32. Volumes are JHFS+):

daniel <at> titanic > xattr -w test fisso LICENSE
daniel <at> titanic > xattr -p test LICENSE
fisso
daniel <at> titanic > which mv
mv: aliased to /bin/mv
daniel <at> titanic > mv LICENSE /Volumes/Scratch
daniel <at> titanic > xattr -p test /Volumes/Scratch/LICENSE
fisso
daniel <at> titanic > /opt/local/libexec/gnubin//mv /Volumes/Scratch/LICENSE .
daniel <at> titanic > xattr -p test LICENSE
xattr: LICENSE: No such xattr: test


Cheers,
Daniel
[Message part 2 (text/html, inline)]

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

Previous Next


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