summaryrefslogtreecommitdiffstats
path: root/net-dialup/mingetty/files/mingetty-ds-x509-v2.patch
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /net-dialup/mingetty/files/mingetty-ds-x509-v2.patch
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'net-dialup/mingetty/files/mingetty-ds-x509-v2.patch')
-rw-r--r--net-dialup/mingetty/files/mingetty-ds-x509-v2.patch22
1 files changed, 22 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;
+ }
+