Rodrigo Osorio 5581370642 net/rsync: Fix the handling of many xattrs on FreeBSD
Fix sys_llistxattr() for FreeBSD code to request a larger
buffer to store the extended attributes list if the current
one is too small.

I also improve the attribute parsing by reducing to one the memmove
calls when converting FreeBSD attribute list to the format used by
Linux and extend the rsync unit tests for long xattrs lists.

Changes where submitted to upstream as:
https://github.com/RsyncProject/rsync/pull/781
https://github.com/RsyncProject/rsync/pull/766

PR:		286773
Reported by:	Peter Eriksson <pen@lysator.liu.se>
Obtained from:	Peter Eriksson <pen@lysator.liu.se>
Reviewed by:	rodrigo
Tested by:	rodrigo
Event:		Berlin Hackaton 202507
Relnotes:  	yes
2025-07-29 20:43:49 +02:00
..