Bug 8885 - Certain directory name results in a strange file being created
Summary: Certain directory name results in a strange file being created
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.0.8
Hardware: x64 Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
Depends on:
Reported: 2012-04-21 14:23 UTC by Levente Peres
Modified: 2015-07-12 20:05 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Levente Peres 2012-04-21 14:23:12 UTC
Dear All,

The following command results in a file named ".--.Bug6lt" being created in the parent directory of "/FTPDATA/-- SYSTEM" (namely, it will be := "/FTPDATA/.--.Bug6lt")

The file seems to be the original file in every sense except for the name.

Command to reproduce:

/bin/nice ionice -c 2 -n 7 /usr/bin/rsync -va --super --numeric-ids --stats --progress --no-D --ignore-errors -e "ssh -i /root/.ssh/id_dsa" /SERVERDATA/FILES/MUNKA/sheridan.tar.bz2.gpg root@rsync.mysite.hu:/FTPDATA/--\ SYSTEM/

Os: Latest Fedora 16, fully updated with the stable updates, (ie. not the testing repo).


Levente Peres
Comment 1 Wayne Davison 2015-07-12 20:05:35 UTC
Your destination path has a space in it, which you must either quote or escape enough in the local shell that the remote shell gets the right name, or you can use the --protect-args (-s) option to tell rsync that you want it to preserve the spaces for you.  I can see that would cause rsync to change the destination path to end at a "--" name, so I'm not sure how the extra dot and suffix got there, but I imagine the reason to be related to the above.