hello,

i have made a patch , adding an option for for avoiding (bulk-)recreation of symlinks when transferring from macos to linux for example.

on linux (and possibly other platforms) , symlinks have generic 777 permission.
on macos, you can set individual permission with chmod -h.

patch is at at https://github.com/devZer0/rsync-workingcopy/commit/7a8d295e531627e0a3d9e41ceedf10ab9be7fb5e

we have checking for lchmod() in autoconf, but for lchmod there seems stub in linux glibc headers which makes this check return success (where it shouldn't)

i spent some thoughts if we better do compile time check for platform to decide to ignore that or not ,  or do compile time or runtime check for lchmod() syscall return values, but i think it's more easy and predictable, to control this manually.  it's  more transparent and less magic this way.

also see:
https://github.com/RsyncProject/rsync/issues/443

maybe somebody want's to review/test and provide feedback.

regards
Roland

ps:
and yes, i am also using AI. i'm a sysadmin and not a programmer.
-- 
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

Reply via email to