Hi. I’m hoping this is the right place to send this. My sincerest apologies if it’s not.
I have a small patch that I'm hoping might be considered for inclusion in a future release of rsync. It relates to the retention of permissions when copying symbolic links. On most systems, permissions for a symbolic link are preserved. One exception is OpenBSD where the use of fchmodat() is required for that purpose. That function is not currently an option in rsync. The attached patch adds it as a final resort. When copying a symbolic link, fchmodat() will then be attempted, if it exists on the local system, after all other possibilities have been tried, just prior giving up. I have used this successfully for over half a year on OpenBSD without problems. I have also included it in compilations for ArchLinux and MacOS without any negative impact when used. The patch does, of course, require a new aclocal, autoconf, autoheader, etc. It has been successfully used with both versions 3.3.0 and 3.4.1. The patch is currently based on the latter. Thanks for your consideration. ------------------------------------------------------------------------ Antoine Verheijen Email: anto...@verheijen.ca . Phone: (780) 462-9696
patch-fchmodat
Description: Binary data
-- 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