The CVS version of rsync outputs an error on exit after listing the
modules from an rsync daemon (running "rsync host::"). The following
patch fixes this. (If you haven't applied my "nohang" patch, you'll see
an offset for this patch hunk.)
..wayne..
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
--- new/io.c Wed Jun 13 18:45:12 2001
+++ io.c Wed Jun 13 18:40:46 2001
@@ -246,12 +246,12 @@
if (n == 0) {
- if (eof_error) {
- rprintf(FERROR,
- "%s: connection to server unexpectedly closed"
- " (%.0f bytes read so far)\n",
- RSYNC_NAME, (double)stats.total_read);
- }
+ if (!eof_error)
+ exit_cleanup(0);
+ rprintf(FERROR,
+ "%s: connection to server unexpectedly closed"
+ " (%.0f bytes read so far)\n",
+ RSYNC_NAME, (double)stats.total_read);
exit_cleanup(RERR_STREAMIO);
}
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---