From: Wayne Davison Date: Sun, 1 Nov 2009 21:26:15 +0000 (-0800) Subject: Make sure rwrite() can handle any logcode value in --msgs2stderr mode. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/ef9d3a152b5438bb961d3a150634e5811147b3c1 Make sure rwrite() can handle any logcode value in --msgs2stderr mode. --- diff --git a/log.c b/log.c index 7be4cec9..6fbdfc7b 100644 --- a/log.c +++ b/log.c @@ -330,13 +330,17 @@ output_msg: got_xfer_error = 1; /* FALL THROUGH */ case FERROR: + case FERROR_UTF8: + case FERROR_SOCKET: case FWARNING: f = stderr; break; + case FLOG: case FINFO: case FCLIENT: break; default: + fprintf(stderr, "Unknown logcode in rwrite(): %d\n", (int)code); exit_cleanup(RERR_MESSAGEIO); }