blob: 943a173c469066fa95b825320a435b5e782bf9c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
diff -ur mgetty-1.1.21/logname.c mgetty-1.1.21.new/logname.c
--- mgetty-1.1.21/logname.c Tue Sep 1 11:56:19 1998
+++ mgetty-1.1.21.new/logname.c Sat Jan 1 17:12:11 2000
@@ -270,6 +270,9 @@
static int ppp_level = 0, ppp_escaped = 0;
char ppp_ch;
#endif
+#if 1
+ static int plp_level = 0;
+#endif
/* read character by character! */
tio_save = *tio;
@@ -413,6 +416,26 @@
ppp_level = 0;
ppp_escaped = 0;
}
+#endif
+#if 1
+ if (ch == '\026')
+ {
+ plp_level = 1;
+ }
+ else if ((ch == '\020') && (plp_level == 1))
+ {
+ plp_level = 2;
+ }
+ else if ((ch == '\002') && (plp_level == 2))
+ {
+ strcpy (buf, "/PLP/");
+ i=5;
+ ch = '\r';
+ }
+ else
+ {
+ plp_level = 0;
+ }
#endif
#ifdef JANUS
|