<div class="gmail_quote">On Wed, Dec 22, 2010 at 1:53 AM, Tim Bruijnzeels <span dir="ltr">&lt;<a href="mailto:tim@ripe.net">tim@ripe.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
There seems to be a problem when trying to retrieve a file that starts with a &#39;-&#39; character, if it lives in the top of an rsync repository:<br></blockquote><div><br></div><div>If the file gets requested by name on the command-line, then popt will interpret it as an option, which will cause a problem.  I don&#39;t see how the daemon protocol you cited could fail, though, since it always sends the file names over the daemon protocol. For a non-daemon file request, the issue can be avoided by requesting the name with a dot-slash at the start (or using --protect-args in newer rsync versions).  For instance:</div>
<div><br></div><div>  rsync -aiv localhost:./-fails /dest/</div><div><br></div></div>..wayne..<br>