[Bug 10081] New: Multiple rsync instances conflict

samba-bugs at samba.org samba-bugs at samba.org
Mon Aug 12 09:58:49 MDT 2013


           Summary: Multiple rsync instances conflict
           Product: rsync
           Version: 3.1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P5
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: xaionaro at gmail.com
         QAContact: rsync-qa at samba.org

When running multiple instances of rsync with "--backup" option on same file
(for example in case of intersecting include-files), few of them can exit with
exitcode "23".

It happens due to nonatomicity of robust_unlink()&do_open() operation in
copy_file(). While one of instances is proceeding between robust_unlink() and
do_open(), another instance can run do_open(). So the first instance will fail
on do_open() due to flag "O_EXCL".

I suggest to remove the flag "O_EXCL" if copy_file() is called from
make_backup() function.

Overwriting of "backuped" file is fine behavior, so why not to permit it even
for this special case?

Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the rsync mailing list