Always make echo work after performing getpasswd even if root account is locked
PATCH 1/1 Always make echo work after performing getpasswd even if root account is locked
If the root account is locked and no password was provided then the terminal line is not set back to do echo of the input. This correct a small overlook in commit 7ff1162e67164cb4ece19dd809c26272461aa254
Signed-off-by Werner Fink <[email protected]>
--- login-utils/sulogin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
sulogin.c +1 -2
@@ -739,8 +739,7 @@ quit:alarm (0 );if (tc)tcsetattr (fd,TCSAFLUSH , &con->tio); -if (ret && *ret !='\0' ) -tcfinal (con); +tcfinal (con);printf ("\r\n" ); out:return ret;
Signature · 1 line
2.6.2
Quoted 2 lines · Werner Fink
login-utils/sulogin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Applied, thanks.
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com