[Bug] having parentheses in filenames causes failure

Geralt usr.gentoo at googlemail.com
Tue Dec 29 03:51:07 MST 2009


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]



HTH,

Geralt.


More information about the rsync mailing list