Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a254fd9
)
Doc.
author
Martin Pool
<mbp@samba.org>
Tue, 9 Apr 2002 05:07:15 +0000
(
05:07
+0000)
committer
Martin Pool
<mbp@samba.org>
Tue, 9 Apr 2002 05:07:15 +0000
(
05:07
+0000)
clientserver.c
patch
|
blob
|
blame
|
history
diff --git
a/clientserver.c
b/clientserver.c
index
5667b1d
..
c8676f6
100644
(file)
--- a/
clientserver.c
+++ b/
clientserver.c
@@
-147,7
+147,13
@@
int start_socket_client(char *host, char *path, int argc, char *argv[])
if (strcmp(line,"@RSYNCD: OK") == 0) break;
- if (strcmp(line,"@RSYNCD: EXIT") == 0) exit(0);
+ if (strcmp(line,"@RSYNCD: EXIT") == 0) {
+ /* This is sent by recent versions of the
+ * server to terminate the listing of modules.
+ * We don't want to go on and transfer
+ * anything; just exit. */
+ exit(0);
+ }
if (strncmp(line, "@ERROR", 6) == 0)
rprintf(FERROR,"%s\n", line);