Bug 5388 - wildcards and rsync 3.0.1+
Summary: wildcards and rsync 3.0.1+
Status: CLOSED FIXED
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.0.3
Hardware: x86 FreeBSD
: P3 major (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-11 07:45 UTC by Matthew McGehrin
Modified: 2008-07-28 20:09 UTC (History)
0 users

See Also:


Attachments
Fix daemon file globbing when "use chroot" is enabled (258 bytes, patch)
2008-04-12 00:37 UTC, Wayne Davison
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew McGehrin 2008-04-11 07:45:58 UTC
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.
Comment 1 Wayne Davison 2008-04-12 00:37:02 UTC
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.
Comment 2 Wayne Davison 2008-04-12 00:37:44 UTC
Thanks for your report.  The attached (trivial) patch fixes this problem.