mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-09-12 21:28:25 -04:00
Pin each validated path component (and a receiver-side new destination's parent) with O_RDONLY|O_NOFOLLOW and pass /proc/self/fd/N to the exec'd rsync so the child cannot re-resolve the path; probe the /proc/self/fd magic-symlink at runtime (not just isdir); fail closed on a readlink anomaly; and don't abort when flock() is unavailable (Solaris).