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

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


https://bugzilla.samba.org/show_bug.cgi?id=5050

           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 samba.org
        ReportedBy: hashproduct+rsync at gmail.com
         QAContact: rsync-qa at samba.org


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/

Result:

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


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- 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