DO NOT REPLY [Bug 5050] New: rsync tries to --copy-dest in --dry-run mode

samba-bugs at samba-bugs at
Sun Oct 28 04:13:21 GMT 2007

           Summary: rsync tries to --copy-dest in --dry-run mode
           Product: rsync
           Version: 3.0.0
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at
        ReportedBy: hashproduct+rsync at
         QAContact: rsync-qa at

With --copy-dest, rsync tries to copy basis files with unchanged data into the
destination even in --dry-run mode; fortunately, the attempt is blocked by
do_open.  Rsync should itemize the local copy without trying to actually
perform it.

To reproduce this bug:

mkdir src dest basis
echo foo >src/file
echo foo >basis/file
rsync -r -ni --checksum --copy-dest=../basis/ src/ dest/


rsync: open "/path/to/dest/file": Success (0)
>f+++++++++ file
rsync error: some files could not be transferred (code 23) at main.c(1053)

Configure bugmail:
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the rsync mailing list