1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

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 3cec478b82)
This commit is contained in:
Jim McDonough 2003-10-23 13:47:17 +00:00
parent e78cf62248
commit a804eee9ec

View File

@ -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);