samba-bugs at samba.org
2014-Jul-09 05:59 UTC
[Bug 10705] New: usermap/groupmap do not escape wildcards passed to the remote
https://bugzilla.samba.org/show_bug.cgi?id=10705 Summary: usermap/groupmap do not escape wildcards passed to the remote Product: rsync Version: 3.1.1 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: darius at dons.net.au QAContact: rsync-qa at samba.org Hi, I was trying to map all GID/UID to 0:0 with.. rsync --chown 0:0 foo user at remote:/tmp but it bombs out with.. rsync: No match. rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.1] I am guessing that --chown 0:0 maps internally to --usermap *:0 --groupmap *:0 but they aren't escaped properly. As a work around I am using.. rsync --usermap \\\*:0 --groupmap \\\*:0 foo user at remote:/tmp and it works. (i.e. the *'s are escaped enough the remote invocation doesn't fail). I imagine this would also work if the remote shell did not error on non-matching globs, however I think the existing behaviour is still broken as if the glob did match the behaviour could be very odd. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2014-Jul-10 01:21 UTC
[Bug 10705] usermap/groupmap do not escape wildcards passed to the remote
https://bugzilla.samba.org/show_bug.cgi?id=10705 --- Comment #1 from Daniel O'Connor <darius at dons.net.au> 2014-07-10 01:21:17 UTC --- I looked through the code and found the --protect-args option which does make --chown work. I guess it would be difficult to fix unless the wildcard character was changed to something else. Perhaps the best work around for now would be to mention --protect-args in the --chown/--usermap/--groupmap options in the man page? -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Reasonably Related Threads
- rsync-3.1.0 bug in cmdline parsing for option --usermap and --groupmap
- rsync-3.1.0 --chown, --usermap, and --groupmap ignored?
- NUT + devd + FreeBSD
- [Bug 10681] New: Add an option to delete non-existent files in --files-from
- rsync 3.2.7 hangs when --usermap is used and receiver is not a super-user