Displaying 1 result from an estimated 1 matches for "unmodified_code".
2009 Jun 11
0
rsync occassionally issues the message "rsync error: unexplained error (code 255) at main.c(1506) [generator=3.0.4]"
...se try this patch below, I think it?ll solve the bug?
Amir
diff -U 5 -Nuir rsync-3.0.4/cleanup.c rsync-3.0.4.new/cleanup.c
--- rsync-3.0.4/cleanup.c 2008-06-04 19:01:02.000000000 +0300
+++ rsync-3.0.4.new/cleanup.c 2009-03-29 09:45:04.000000000 +0300
@@ -98,11 +98,11 @@
static int unmodified_code = 0;
SIGACTION(SIGUSR1, SIG_IGN);
SIGACTION(SIGUSR2, SIG_IGN);
- if (exit_code) /* Preserve first error code when recursing. */
+ if (exit_code && exit_code != 255) /* Preserve first specific error code
when recursing. */
code = exit_code;
/* If this is t...