Opened 4 years ago

Last modified 3 years ago

#62538 new defect

Coreutils mv discards extended attributes when moving to a different volume — at Version 1

Reported by: DanielSmedegaardBuus (Daniel Smedegaard Buus) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc:
Port: coreutils

Description (last modified by DanielSmedegaardBuus (Daniel Smedegaard Buus))

Hello :)

The mv version included with coreutils in MacPorts (also Homebrew, just for reference) discards extended attributes when moving a file from one volume to another (not intra-volume). This doesn't happen with the OS X bundled mv, or with coreutils on Ubuntu that I tested on, too.

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

Change History (1)

comment:1 Changed 4 years ago by DanielSmedegaardBuus (Daniel Smedegaard Buus)

Description: modified (diff)
Note: See TracTickets for help on using tickets.