And broken in 3.1.1 https://git.samba.org/?p=rsync.git;a=commitdiff;h=22a3ac0b5538ec6c1ff222570413cbdb74fef67b In other words, you do not need a patched zlib for anything. You need non-broken rsync.