svn commit: samba r25680 - in branches/SAMBA_4_0/source/lib/replace: .

metze at samba.org metze at samba.org
Wed Oct 17 14:00:42 GMT 2007


Author: metze
Date: 2007-10-17 14:00:42 +0000 (Wed, 17 Oct 2007)
New Revision: 25680

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25680

Log:
Volker's fix for bug #668. Change the \n after the password prompt to go to tty instead of stdout.
(cherry picked from commit 0cd1ed0424ce87f60070d43caffda41be6706d59)

Modified:
   branches/SAMBA_4_0/source/lib/replace/getpass.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/getpass.c
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/getpass.c	2007-10-17 14:00:23 UTC (rev 25679)
+++ branches/SAMBA_4_0/source/lib/replace/getpass.c	2007-10-17 14:00:42 UTC (rev 25680)
@@ -213,14 +213,15 @@
 			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 */
 	catch_signal(SIGINT, SIGNAL_CAST SIG_DFL);
 
-	printf("\n");
-
 	if (gotintr) {
 		printf("Interupted by signal.\n");
 		fflush(stdout);



More information about the samba-cvs mailing list