Make sure rwrite() can handle any logcode value in --msgs2stderr mode.
authorWayne Davison <wayned@samba.org>
Sun, 1 Nov 2009 21:26:15 +0000 (13:26 -0800)
committerWayne Davison <wayned@samba.org>
Sun, 1 Nov 2009 21:26:15 +0000 (13:26 -0800)
log.c

diff --git a/log.c b/log.c
index 7be4cec..6fbdfc7 100644 (file)
--- 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);
        }