Bug 7807 - Error when using rsync: as protocol prefix and :: as module separator
Summary: Error when using rsync: as protocol prefix and :: as module separator
Status: RESOLVED INVALID
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.0.7
Hardware: Other Linux
: P3 minor (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-20 17:56 UTC by Max
Modified: 2010-11-20 19:27 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max 2010-11-20 17:56:38 UTC
When attempting to use rsync with a URL such as that shown below which uses "rsync:" as a protocol prefix and "::" as a module separator the error shown beneath is produced:

rsync -a rsync://rsync.mad-hacking.net::hacking-gentoo-overlay ~/test/

ssh: Could not resolve hostname rsync: Name or service not known

Using the "/" as a module separator, or omitting the rsync: protocol prefix, as shown below, works normally.

rsync -a rsync://rsync.mad-hacking.net/hacking-gentoo-overlay/ ~/test/
rsync -a rsync.mad-hacking.net::hacking-gentoo-overlay ~/test/
Comment 1 Brian K. White 2010-11-20 18:53:07 UTC
The last two syntaxes are described in the man-page and of course they work. 

The first syntax and anything else you invent will of course not work.

I see no bug.
Comment 2 Max 2010-11-20 19:27:31 UTC
Fair enough - the command in question was being generated by some other software.  If you do a quick Google it would seem it is not alone in generating such malformed code.

At first glance the man page doesn't seem to say it is invalid although closer inspection does seem to imply that I agree.  Perhaps better wording of the examples section would make it clearer?