Hello. Using cp (from native musl coreutils compilation, not busybox) I am getting a strange result when doing a copy (using musls-1.1.8) test (user:group, no privilege 301:300, doing this as root is no problem): ;------------------------------------------------------------- mkdir d1 cd d1 touch p1 ln -s p1 lp1 cd .. cp -a d1 d2 cp: failed to preserve ownership for d2/lp1: Not supported ;-------------------------------------------------------------- Note: same cp from coreutils glibc working fine. strace extract getdents64(3, /* 4 entries */, 2048) = 96 getdents64(3, /* 0 entries */, 2048) = 0 close(3) = 0 lstat("d1/lp1", {st_mode=S_IFLNK|0777, st_size=2, ...}) = 0 readlink("d1/lp1", "p1", 3) = 2 symlink("p1", "d2/lp1") = 0 lstat("d2/lp1", {st_mode=S_IFLNK|0777, st_size=2, ...}) = 0 lchown("d2/lp1", 301, 300) = 0 newfstatat(AT_FDCWD, "d2/lp1", {st_mode=S_IFLNK|0777, st_size=2, ...}, AT_SYMLINK_NOFOLLOW) = 0 fcntl(1, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE) writev(2, [{"cp: ", 4}, {NULL, 0}], 2cp: ) = 4 writev(2, [{"", 0}, {"failed to preserve ownership for"..., 39}], 2failed to preserve ownership for d2/lp1) = 39 writev(2, [{": Not supported", 15}, {NULL, 0}], 2: Not supported) = 15 writev(2, [{"", 0}, {"\n", 1}], 2 ) = 1 lstat("d1/p1", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 open("d1/p1", O_RDONLY|O_NOFOLLOW) = 3 ;---------------------------------------------------------------------- My understanding/feeling, could be within fcntl not reading symlink file status properly. possible? however, even if 'cp' is complaining, the duplication is properly done. -- A bientôt =========================================================== Jean-Marc Pigeon E-Mail: jmp@safe.ca SAFE Inc. Phone: (514) 493-4280 Clement, 'a kiss solution' to get rid of SPAM (at last) Clement' Home base <"http://www.clement.safe.ca"> ===========================================================