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: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
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.
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html