From: Jeremy Allison Date: Sat, 10 Dec 2016 21:56:18 +0000 (-0800) Subject: s3: ntlm_auth: Don't corrupt the output stream with debug messages. X-Git-Tag: samba-4.4.9~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b679b88bc2fd125bfce892f38a5804c7e93fffee;p=thirdparty%2Fsamba.git s3: ntlm_auth: Don't corrupt the output stream with debug messages. Calling programs expect to cleanly read from STDOUT. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12467 Signed-off-by: Jeremy Allison Reviewed-by: Uri Simchoni Reviewed-by: Volker Lendecke (cherry picked from commit 9fbd544b90c2b27985637a9bb3fa520f891f8696) Autobuild-User(v4-4-test): Karolin Seeger Autobuild-Date(v4-4-test): Thu Dec 15 12:21:27 CET 2016 on sn-devel-144 --- diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c index b65493b27ba..653be45aa3c 100644 --- a/source3/utils/ntlm_auth.c +++ b/source3/utils/ntlm_auth.c @@ -291,7 +291,7 @@ static char winbind_separator(void) if (winbindd_request_response(NULL, WINBINDD_INFO, NULL, &response) != NSS_STATUS_SUCCESS) { - d_printf("could not obtain winbind separator!\n"); + d_fprintf(stderr, "could not obtain winbind separator!\n"); return *lp_winbind_separator(); } @@ -299,7 +299,7 @@ static char winbind_separator(void) got_sep = True; if (!sep) { - d_printf("winbind separator was NULL!\n"); + d_fprintf(stderr, "winbind separator was NULL!\n"); return *lp_winbind_separator(); } @@ -493,7 +493,7 @@ static bool check_plaintext_auth(const char *user, const char *pass, if (stdout_diagnostics) { if ((result != NSS_STATUS_SUCCESS) && (response.data.auth.nt_status == 0)) { - d_printf("Reading winbind reply failed! (0x01)\n"); + d_fprintf(stderr, "Reading winbind reply failed! (0x01)\n"); } d_printf("%s: %s (0x%x)\n",