From: David Dykstra Date: Mon, 18 Feb 2002 18:29:48 +0000 (+0000) Subject: If a daemon prints an error message of @ERROR, have the client treat the X-Git-Tag: v2.5.3pre1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c613d3704853c399f6b30b35fb1c9e63045b761a;p=thirdparty%2Frsync.git If a daemon prints an error message of @ERROR, have the client treat the message as an FERROR rather than an FINFO. --- diff --git a/clientserver.c b/clientserver.c index 1cbabd3d..2bab6aa9 100644 --- a/clientserver.c +++ b/clientserver.c @@ -129,7 +129,10 @@ int start_socket_client(char *host, char *path, int argc, char *argv[]) if (strcmp(line,"@RSYNCD: EXIT") == 0) exit(0); - rprintf(FINFO,"%s\n", line); + if (strncmp(line, "@ERROR", 6) == 0) + rprintf(FERROR,"%s\n", line); + else + rprintf(FINFO,"%s\n", line); } kludge_around_eof = False;