<div>Hi all,</div><div><br></div><div>These two patches change how rsync handles temporary files on the receiver side. The first patch adds a static token to rsync's temporary filenames. The second patch ignores files with this token when using --cvs-ignore.</div>
<div><br></div><a href="http://pastebin.com/DL1jCNfm">http://pastebin.com/DL1jCNfm</a><div><a href="http://pastebin.com/yy9duP8Z">http://pastebin.com/yy9duP8Z</a></div><div><br></div><div>The behaviour I wanted to improve was the case where two rsyncs are simultaneously reading and writing the same tree. In this scenario the reader can end up reading the writer's temporary files (unless you use --temp-dir) and copying them elsewhere.</div>
<div><br></div><div>A side effect of this change is the names of rsync's temporary files will be "self-documenting" for users running `ls -la`.</div><div><br></div><div>I've tested this patch on Linux, but am reasonably unfamiliar with C so feedback appreciated.</div>
<div><br></div><div>Cheers,</div><div>Alex</div>