summaryrefslogtreecommitdiffstats
path: root/net-dialup/mingetty/files/mingetty-ds-x509.patch
blob: ae27fd619f5caf13be09bf0f4ad2ce29bddd69bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff -dPNur mingetty-1.07/mingetty.c mingetty-1.07-new/mingetty.c
--- mingetty-1.07/mingetty.c	2004-01-03 13:15:56.000000000 +0000
+++ mingetty-1.07-new/mingetty.c	2006-01-04 23:44:55.000000000 +0000
@@ -297,7 +297,8 @@
 	unsigned char c;
 
 	tcflush (0, TCIFLUSH);		/* flush pending input */
-	for (*logname = 0; *logname == 0;) {
+	*logname=0;
+//	for (*logname = 0; *logname == 0;) {
 		do_prompt (1);
 		for (bp = logname;;) {
 			if (read (0, &c, 1) < 1) {
@@ -317,7 +318,7 @@
 			else
 				*bp++ = c;
 		}
-	}
+//	}
 	return logname;
 }