diff options
author | Martin Pool <mbp@samba.org> | 2002-04-09 05:07:15 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-04-09 05:07:15 +0000 |
commit | cae95647a4355ff81f044ef001c6332f138fa171 (patch) | |
tree | 0cfb56b1e5a79db415a5ec555ed8de587732c59d /clientserver.c | |
parent | a254fd97982bbff8e060da9a62a799cd836d9ee0 (diff) | |
download | rsync-cae95647a4355ff81f044ef001c6332f138fa171.tar.gz rsync-cae95647a4355ff81f044ef001c6332f138fa171.tar.bz2 rsync-cae95647a4355ff81f044ef001c6332f138fa171.zip |
Doc.
Diffstat (limited to 'clientserver.c')
-rw-r--r-- | clientserver.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clientserver.c b/clientserver.c index 5667b1d5..c8676f64 100644 --- 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); |