The Samba-Bugzilla – Attachment 2955 Details for
Bug 5050
rsync tries to --copy-dest in --dry-run mode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix: skip the call to copy_file in dry-run mode
fix-5050.diff (text/plain), 456 bytes, created by
Matt McCutchen
on 2007-10-27 23:40:46 UTC
(
hide
)
Description:
Fix: skip the call to copy_file in dry-run mode
Filename:
MIME Type:
Creator:
Matt McCutchen
Created:
2007-10-27 23:40:46 UTC
Size:
456 bytes
patch
obsolete
>Fix https://bugzilla.samba.org/show_bug.cgi?id=5050 > >--- old/generator.c >+++ new/generator.c >@@ -904,7 +904,7 @@ static int try_dests_reg(struct file_str > #ifdef SUPPORT_HARD_LINKS > try_a_copy: /* Copy the file locally. */ > #endif >- if (copy_file(cmpbuf, fname, file->mode, 0) < 0) { >+ if (!dry_run && copy_file(cmpbuf, fname, file->mode, 0) < 0) { > if (verbose) { > rsyserr(FINFO, errno, "copy_file %s => %s", > full_fname(cmpbuf), fname);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 5050
: 2955