summaryrefslogtreecommitdiff
path: root/clientserver.c
diff options
context:
space:
mode:
authorDavid Dykstra <dwd@samba.org>2002-02-18 18:29:48 +0000
committerDavid Dykstra <dwd@samba.org>2002-02-18 18:29:48 +0000
commitc613d3704853c399f6b30b35fb1c9e63045b761a (patch)
treed3029bc99e602100de1944c4e20ea6b9ba6ca58a /clientserver.c
parentd52a22e4dbd23ce9120c66f005ee717bd3b5d2fc (diff)
downloadrsync-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.c5
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;