[Bug] having parentheses in filenames causes failure

Matthias Schniedermeyer ms at citd.de
Tue Dec 29 04:07:38 MST 2009


On 29.12.2009 11:51, Geralt wrote:
> Hi,
> 
> I don't know how to exactly describe the bug, but the following
> test-case reproduces the bug in 3.0.6
> 
> mkdir rsync-test
> cd rsync-test
> mkdir -p "src/directory (name)"
> touch "src/directory (name)/somefile"
> mkdir dest
> rsync --archive --dry-run --verbose "src/directory (name)/"
> "$USER at 127.0.0.1:$PWD/dest/directory (name)"
> 
> The error is:
> 
> bash: -c: line 0: syntax error near unexpected token `('
> bash: -c: line 0: `rsync --server -vnlogDtpre.iLs .
> /tmp/rsync-test/dest/directory (name)'
> rsync: connection unexpectedly closed (0 bytes received so far) [sender]
> rsync error: error in rsync protocol data stream (code 12) at
> io.c(600) [sender=3.0.6]

Try it again with "-s" a.k.a "--protect-args" added.




Bis denn

-- 
Real Programmers consider "what you see is what you get" to be just as 
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated, 
cryptic, powerful, unforgiving, dangerous.



More information about the rsync mailing list