From a804eee9ec05680b6af23d5c435a6682f82dfd71 Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Thu, 23 Oct 2003 13:47:17 +0000 Subject: Volker's fix for bug #668. Change the \n after the password prompt to go to tty instead of stdout. (This used to be commit 3cec478b82359c527065c3a8d44daae96b7ac57e) --- source3/lib/getsmbpass.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/lib/getsmbpass.c') diff --git a/source3/lib/getsmbpass.c b/source3/lib/getsmbpass.c index 27cd5e6dfa..df5e0359aa 100644 --- a/source3/lib/getsmbpass.c +++ b/source3/lib/getsmbpass.c @@ -158,14 +158,15 @@ char *getsmbpass(const char *prompt) tcsetattr (fileno (in), TCSANOW, &t); } + fprintf(out, "\n"); + fflush(out); + if (in != stdin) /* We opened the terminal; now close it. */ fclose(in); /* Catch problematic signals */ CatchSignal(SIGINT, SIGNAL_CAST SIG_DFL); - printf("\n"); - if (gotintr) { printf("Interupted by signal.\n"); fflush(stdout); -- cgit