summaryrefslogtreecommitdiffstats
path: root/net-dialup/mingetty/files
diff options
context:
space:
mode:
Diffstat (limited to 'net-dialup/mingetty/files')
-rw-r--r--net-dialup/mingetty/files/mingetty-ds-x509-v2.patch22
-rw-r--r--net-dialup/mingetty/files/mingetty-ds-x509.patch22
2 files changed, 44 insertions, 0 deletions
diff --git a/net-dialup/mingetty/files/mingetty-ds-x509-v2.patch b/net-dialup/mingetty/files/mingetty-ds-x509-v2.patch
new file mode 100644
index 0000000..86451da
--- /dev/null
+++ b/net-dialup/mingetty/files/mingetty-ds-x509-v2.patch
@@ -0,0 +1,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;
+ }
+- }
++ if (!*logname) strcpy(logname, "x509detect");
+ return logname;
+ }
+
diff --git a/net-dialup/mingetty/files/mingetty-ds-x509.patch b/net-dialup/mingetty/files/mingetty-ds-x509.patch
new file mode 100644
index 0000000..ae27fd6
--- /dev/null
+++ b/net-dialup/mingetty/files/mingetty-ds-x509.patch
@@ -0,0 +1,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;
+ }
+