bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cp(1) extended attributes bug


From: Ernest N. Mamikonyan
Subject: cp(1) extended attributes bug
Date: Mon, 31 Aug 2009 14:09:24 -0400
User-agent: Opera Mail/10.10 (Linux)

Cp(1) doesn't correctly copy extended attributes for read-only files:

touch foo
setfattr -n user.key -v value foo
chmod a-w foo
cp --preserve=xattr foo bar
cp: setting attribute `user.key' for `user.key': Permission denied

If one uses "cp -a" instead, it simply strips the metadata and doesn't complain.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]