rsync logs every symlink it encounters as a transfer, even when the local target already exists. This patch moves the log statement into the conditional where it belongs.
--lyndon
Index: uploader.c =================================================================== RCS file: /cvs/src/usr.bin/rsync/uploader.c,v retrieving revision 1.34 diff -u -r1.34 uploader.c --- uploader.c 28 Apr 2023 10:24:39 -0000 1.34 +++ uploader.c 26 Jun 2023 21:29:05 -0000 @@ -260,9 +260,9 @@ return -1; } free(temp); + log_symlink(sess, f); } - log_symlink(sess, f); return 0; }