patch to avoid race condition in rsync 2.5.6

Paul Slootman paul+rsync at
Wed May 21 00:57:13 EST 2003

On Tue 20 May 2003, Petter Reinholdtsen wrote:
> There is a small race condition in rsync 2.5.6.  When the transfer is
> finished, and the file is moved into place, there is a short time
> period where the new file is in place with the wrong permissions.
> When using rsync on a busy email server to replace the exim config
> file with a new file, exim will produce several complaints in that
> short period.  This small patch fixes the problem, by making sure the
> new file is given the correct permissions before it is moved into
> place.

Hmm, might this not lead to the situation that the file can't be renamed
due to the permissions in some cases?

Paul Slootman

More information about the rsync mailing list