diff options
author | David Dykstra <dwd@samba.org> | 2002-02-18 18:29:48 +0000 |
---|---|---|
committer | David Dykstra <dwd@samba.org> | 2002-02-18 18:29:48 +0000 |
commit | c613d3704853c399f6b30b35fb1c9e63045b761a (patch) | |
tree | d3029bc99e602100de1944c4e20ea6b9ba6ca58a /clientserver.c | |
parent | d52a22e4dbd23ce9120c66f005ee717bd3b5d2fc (diff) | |
download | rsync-c613d3704853c399f6b30b35fb1c9e63045b761a.tar.gz |
If a daemon prints an error message of @ERROR, have the client treat the
message as an FERROR rather than an FINFO.
Diffstat (limited to 'clientserver.c')
-rw-r--r-- | clientserver.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |