mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-23 06:14:18 -04:00
Receiving an @ERROR line from the server is (I think) always fatal, so
the client should exit upon receiving one and not be surprised that the socket closes.
This commit is contained in:
1 parent
3e8369b6dc
commit
136ac7ecec
1 file changed
+6
-2
+6
-2
@@ -161,10 +161,14 @@ int start_socket_client(char *host, char *path, int argc, char *argv[])
|
||||
exit(0);
|
||||
}
|
||||
|
||||
if (strncmp(line, "@ERROR", 6) == 0)
|
||||
if (strncmp(line, "@ERROR", 6) == 0) {
|
||||
rprintf(FERROR,"%s\n", line);
|
||||
else
|
||||
/* This is always fatal; the server will now
|
||||
* close the socket. */
|
||||
return RERR_STARTCLIENT;
|
||||
} else {
|
||||
rprintf(FINFO,"%s\n", line);
|
||||
}
|
||||
}
|
||||
kludge_around_eof = False;
|
||||
|
||||
|
||||
Reference in new issue
Block a user