I recently upgraded to rsync 3.02 from 3.00 and noticed the following error when attempting to rsync using wildcards. I am rsyncing on localhost using a wildcard from a particular directory. receiving file list ... rsync: link_stat "/66.225.223.*.html" (in mrtg) failed: No such file or directory (2) done Number of files: 0 Number of files transferred: 0 Total file size: 0 bytes Total transferred file size: 0 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 1 Total bytes sent: 4 Total bytes received: 6 sent 4 bytes received 6 bytes 20.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files could not be transferred (code 23) at main.c(1497) [receiver=3.0.2] receiving file list ... rsync: link_stat "/66.225.223.*-day.png" (in mrtg) failed: No such file or directory (2) done [mrtg] path = /var/www/htdocs/mrtg uid = root read only = yes #!/bin/bash /usr/local/bin/rsync -ltvud --stats \ localhost::mrtg/66.225.*.*.html /var/www/htdocs/mrtg/usage /usr/local/bin/rsync -ltvud --stats \ localhost::mrtg/66.225.*.*-day.png /var/www/htdocs/mrtg/usage This works fine in 3.0.0 Number of files: 251 Number of files transferred: 0 Total file size: 734829 bytes Total transferred file size: 0 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 4533 File list generation time: 0.003 seconds File list transfer time: 0.000 seconds Total bytes sent: 26 Total bytes received: 4567 sent 26 bytes received 4567 bytes 9186.00 bytes/sec total size is 734829 speedup is 159.99 Thank You.
Created attachment 3264 [details] Fix daemon file globbing when "use chroot" is enabled This fixes the problem with wildcards not being expanded in a daemon module that has chroot enabled.
Thanks for your report. The attached (trivial) patch fixes this problem.