sulogin: fix getpasswd()
Fixes: https://github.com/karelzak/util-linux/issues/1400 Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
54cb0dd60c
commit
3c466f7c35
|
@ -621,6 +621,7 @@ static char *getpasswd(struct console *con)
|
||||||
cp = &con->cp;
|
cp = &con->cp;
|
||||||
tty = con->tio;
|
tty = con->tio;
|
||||||
|
|
||||||
|
ret = pass;
|
||||||
tty.c_iflag &= ~(IUCLC|IXON|IXOFF|IXANY);
|
tty.c_iflag &= ~(IUCLC|IXON|IXOFF|IXANY);
|
||||||
tty.c_lflag &= ~(ECHO|ECHOE|ECHOK|ECHONL|TOSTOP|ISIG);
|
tty.c_lflag &= ~(ECHO|ECHOE|ECHOK|ECHONL|TOSTOP|ISIG);
|
||||||
tc = (tcsetattr(fd, TCSAFLUSH, &tty) == 0);
|
tc = (tcsetattr(fd, TCSAFLUSH, &tty) == 0);
|
||||||
|
|
Loading…
Reference in New Issue