From antoine at verheijen.ca Sun Jun 8 07:20:19 2025 From: antoine at verheijen.ca (Antoine Verheijen) Date: Sun, 8 Jun 2025 01:20:19 -0600 Subject: Symbolic Link Permissions on OpenBSD Message-ID: <14860021-FEA3-467F-85BF-87D673F59550@verheijen.ca> 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: antoine at verheijen.ca . Phone: (780) 462-9696 -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-fchmodat Type: application/octet-stream Size: 897 bytes Desc: not available URL: