]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sulogin: fix getpasswd()
authorKarel Zak <kzak@redhat.com>
Thu, 29 Jul 2021 19:28:00 +0000 (21:28 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 29 Jul 2021 19:29:18 +0000 (21:29 +0200)
Fixes: https://github.com/karelzak/util-linux/issues/1400
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/sulogin.c

index 0559eebc5f8433749d10957ed445e817fd50c7a3..8f47fe31d8a1b7ab1dffc7e6d80cef1bc2c61548 100644 (file)
@@ -680,6 +680,7 @@ static char *getpasswd(struct console *con)
        tc = 0;
        ret = pass;
 
+       ret = pass;
        tty.c_iflag &= ~(IUCLC|IXON|IXOFF|IXANY);
        tty.c_lflag &= ~(ECHO|ECHOE|ECHOK|ECHONL|TOSTOP|ISIG);