cp,mv: preserve extended attributes even for read-only files
commitcca83fafa69eb26db458714830b77498b88af8a4
authorOndřej Vašík <ovasik@redhat.com>
Mon, 14 Sep 2009 13:12:01 +0000 (14 14:12 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 14 Sep 2009 13:19:03 +0000 (14 14:19 +0100)
tree6802df397ac2c1c59ed50c58aed04d823b0d8e59
parenteb1299481aeda0c1b10d0186e00a088597e603a8
cp,mv: preserve extended attributes even for read-only files

* src/copy.c (copy_reg): Temporarily set u+rw on the destination file
to allow GNU/Linux to set xattrs.
* tests/misc/xattr: Test that change.
* NEWS (Bug fixes): Mention it.
Reported by Ernest N. Mamikonyan.
NEWS
src/copy.c
tests/misc/xattr