X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/fd2dd2aa231954db2bcc0b60f2a696bc38161aa9..e1bd49d6f3f7a5793cc9cd06d57498ce976f81e0:/clientserver.c diff --git a/clientserver.c b/clientserver.c index 1bb0633a..00efea49 100644 --- a/clientserver.c +++ b/clientserver.c @@ -63,7 +63,7 @@ int start_socket_client(char *host, char *path, int argc, char *argv[]) } if (*path == '/') { - rprintf(FERROR,"ERROR: The remote path must start with a module name\n"); + rprintf(FERROR,"ERROR: The remote path must start with a module name not a /\n"); return -1; } @@ -117,6 +117,9 @@ 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); + rprintf(FINFO,"%s\n", line); } @@ -381,6 +384,8 @@ static void send_listing(int fd) for (i=0;i