]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Remove code conditional on USE_TERMIO
authorAlejandro Colomar <alx@kernel.org>
Tue, 13 Dec 2022 21:10:16 +0000 (22:10 +0100)
committerSerge Hallyn <serge@hallyn.com>
Thu, 15 Dec 2022 22:22:05 +0000 (16:22 -0600)
The definition for this macro was removed in a previous commit.

Reported-by: Iker Pedrosa <ipedrosa@redhat.com>
Cc: Christian Göttsche <cgzones@googlemail.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/sulogin.c

index 65b74da4160a16b83fa778f41058e095b055d6e4..ecf18c79c3e9fb609273d3489b0ad0795124703e 100644 (file)
@@ -67,14 +67,6 @@ static void catch_signals (unused int sig)
        TERMIO termio;
        int err = 0;
 
-#ifdef USE_TERMIO
-       ioctl (0, TCGETA, &termio);
-       termio.c_iflag |= (ICRNL | IXON);
-       termio.c_oflag |= (OPOST | ONLCR);
-       termio.c_cflag |= (CREAD);
-       termio.c_lflag |= (ISIG | ICANON | ECHO | ECHOE | ECHOK);
-       ioctl (0, TCSETAF, &termio);
-#endif
 #ifdef USE_TERMIOS
        tcgetattr (0, &termio);
        termio.c_iflag |= (ICRNL | IXON);