The Samba-Bugzilla – Bug 8885
Certain directory name results in a strange file being created
Last modified: 2015-07-12 20:05:35 UTC
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 email@example.com:/FTPDATA/--\ SYSTEM/
Os: Latest Fedora 16, fully updated with the stable updates, (ie. not the testing repo).
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.