From 8e1dfc52b91f38ab53c8f717cb8b952c49a501bb Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Thu, 23 Oct 2003 13:47:21 +0000 Subject: [PATCH] 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 fb503bb418fcbee20d2218650904b26b512106ed) --- source3/lib/getsmbpass.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/lib/getsmbpass.c b/source3/lib/getsmbpass.c index 27cd5e6dfa2..df5e0359aa2 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); -- 2.11.4.GIT