1
Goal: Re-activate ECHOCTL in login
5
Status wrt upstream: Not reported yet.
7
Note: Was removed by upstream in 4.0.8 with "remove dead code" comment
9
Index: shadow-4.1.0/src/login.c
10
===================================================================
11
--- shadow-4.1.0.orig/src/login.c
12
+++ shadow-4.1.0/src/login.c
14
termio.c_lflag |= ISIG | ICANON | ECHO | ECHOE;
15
termio.c_iflag |= ICRNL;
17
+#if defined(ECHOKE) && defined(ECHOCTL)
18
+ termio.c_lflag |= ECHOKE | ECHOCTL;
20
+#if defined(ECHOPRT) && defined(NOFLSH) && defined(TOSTOP)
21
+ termio.c_lflag &= ~(ECHOPRT | NOFLSH | TOSTOP);
24
+ termio.c_oflag |= ONLCR;
27
/* leave these values unchanged if not specified in login.defs */
28
termio.c_cc[VERASE] = getdef_num ("ERASECHAR", termio.c_cc[VERASE]);
29
termio.c_cc[VKILL] = getdef_num ("KILLCHAR", termio.c_cc[VKILL]);