]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Revert "sulogin: fix getpasswd()"
authorKarel Zak <kzak@redhat.com>
Fri, 30 Jul 2021 12:16:03 +0000 (14:16 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 30 Jul 2021 12:16:03 +0000 (14:16 +0200)
This patch is unnecessary in the master branch.

This reverts commit 2d8a9fcee2e3d63deb6bcba650894ff14d8e2d3b.

References: https://github.com/karelzak/util-linux/issues/1400

login-utils/sulogin.c

index 8f47fe31d8a1b7ab1dffc7e6d80cef1bc2c61548..0559eebc5f8433749d10957ed445e817fd50c7a3 100644 (file)
@@ -680,7 +680,6 @@ 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);