samba-bugs@samba.org
2007-Oct-28 04:13 UTC
DO NOT REPLY [Bug 5050] New: rsync tries to --copy-dest in --dry-run mode
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@samba.org ReportedBy: hashproduct+rsync@gmail.com QAContact: rsync-qa@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+++++++++ filersync 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.
samba-bugs@samba.org
2007-Oct-28 04:40 UTC
DO NOT REPLY [Bug 5050] rsync tries to --copy-dest in --dry-run mode
https://bugzilla.samba.org/show_bug.cgi?id=5050 ------- Comment #1 from matt@mattmccutchen.net 2007-10-27 23:40 CST ------- Created an attachment (id=2955) --> (https://bugzilla.samba.org/attachment.cgi?id=2955&action=view) Fix: skip the call to copy_file in dry-run mode -- 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.
samba-bugs@samba.org
2007-Oct-28 21:27 UTC
DO NOT REPLY [Bug 5050] rsync tries to --copy-dest in --dry-run mode
https://bugzilla.samba.org/show_bug.cgi?id=5050 wayned@samba.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #2 from wayned@samba.org 2007-10-28 16:27 CST ------- Your fix is now in CVS. Thanks! -- 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.
Seemingly Similar Threads
- DO NOT REPLY [Bug 5051] New: --copy-dest copies should use a temporary file unless --inplace
- DO NOT REPLY [Bug 4412] New: --dry-run output inaccurate due to implied symlink
- DO NOT REPLY [Bug 3554] New: Second copy of same rsync daemon should notice pid file and quit
- DO NOT REPLY [Bug 4056] New: Option to look for fuzzy basis files in --*-dest directories
- DO NOT REPLY [Bug 3422] New: dry run fails when encountering dangling symbolic link