Package: coreutils Version: 5.2.1-2.1 Severity: normal When moving a file from one location to another on the same filesystem, mv seems to always preserve every EA, either ACL or user-defined. But when moving accross filesystems, whereas the ACL are preserved, the user-defined extended attributes are lost:
$ for NUM in 1 2 ; do dd if=/dev/zero of=fs$NUM count=1024; /sbin/mkfs.ext2 -F fs$NUM; mkdir mount$NUM; sudo mount fs$NUM mount$NUM -o loop,acl,user_xattr; done $ cd mount1 $ echo foobar > foo $ setfattr -n user.author -v "me" foo $ setfacl -m u:root:rx foo $ getfacl --skip-base foo ; getfattr -d foo # file: foo # owner: pierre # group: pierre user::rw- user:root:r-x group::--- mask::r-x other::--- # file: foo user.author="me" $ mv foo ../mount2 $ cd ../mount2 $ getfacl --skip-base foo ; getfattr -d foo # file: foo # owner: pierre # group: pierre user::rw- user:root:r-x group::--- mask::r-x other::--- So the user-defined EA has been lost. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.12-1-k7 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages coreutils depends on: ii libacl1 2.2.32-1 Access control list shared library ii libc6 2.3.5-6 GNU C Library: Shared libraries an coreutils recommends no packages. -- no debconf information -- [EMAIL PROTECTED] OpenPGP 0xD9D50D8A
signature.asc
Description: Digital signature