rsync and write permissions at the target

view story

http://unix.stackexchange.com – I always wondered why rsync tries to transfer a file to a remote location where it has read/execute permissions for the target dir, but no write permissions to create the actual destination file. This can be simulated even locally when trying to copy a file as a regular user to /, rsync will transfer the whole file (also taking rather long for large files) and finally fails with rsync: mkstemp "/.myTargetFile" failed: Permission denied (13) So it already seems to fail at startup when trying to create the temporary file (the dot-file) during transfer. Why doesn't it notice this and aborts ea (HowTos)