[Bug 14683] failed to set permissions on symlinks; need `--omit-link-permissions` option
https://bugzilla.samba.org/show_bug.cgi?id=14683 --- Comment #2 from Ciprian Dorin Craciun --- (In reply to Ciprian Dorin Craciun from comment #1) Trying to `strace` what `rsync` does in my OpenAFS use-case I've found that the only syscals invoked by `rysync` (and pertaining to the file in question) are: * `readlink`; * `newfstatat`; * `openat`; * `symlink`; Furthermore, none of them actually fail, instead it seems that the "Operation not supported (95)" is actually generated internally (although I couldn't easily identify its origin). -- You are receiving this mail because: You are the QA Contact for the bug. -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
[Bug 14683] failed to set permissions on symlinks; need `--omit-link-permissions` option
https://bugzilla.samba.org/show_bug.cgi?id=14683 --- Comment #1 from Ciprian Dorin Craciun --- I've encountered a similar situation, but with OpenAFS, which for some reason reports the protection for symlinks as `rwxr-xr-x`. Thus using `rsync` with `--perms` and targeting an OpenAFS folder fails with a similar error stating that it can't `chmod` the permissions for that symlink. I am similarly using 3.2.3 on OpenSUSE Tumbleweed (the client) and the same version on OpenSUSE Leap 15.2 (the server). A few monts ago (say January) I've not encountered this error (I'm using the same scripts as before). In essence to reproduce this issue one just has to: mkdir /tmp/source ln -s /dev/null /tmp/source/some-symlink stat /tmp/source/some-symlink # Access: (0777/lrwxrwxrwx) Uid: (1000/ ciprian) Gid: (1000/ ciprian) mkdir /afs/.../target ln -s /dev/null /afs/.../target/some-other-symlink stat /afs/.../target/some-other-symlink # Access: (0755/lrwxr-xr-x) Uid: (33025/ UNKNOWN) Gid: (1000/ ciprian) # up to here we've checked that the source file-system behaves normaly while OpenAFS forces the protection I've stated. rsync -r -p -i --links /tmp/source/some-symlink /afs/.../target/ rsync: [generator] failed to set permissions on "/afs/.../target/some-symlink": Operation not supported (95) cL+ some-symlink -> /dev/null rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=3.2.3] (The same happens when the target is via SSH.) -- You are receiving this mail because: You are the QA Contact for the bug. -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html