Skip to contentSkip to conversation

Always make echo work after performing getpasswd even if root account is locked

PATCH Applied Werner Fink 2 participants 2 messages Mar 22, 2016 Util-Linux package

lore
Share & tools
lore
#0 lore raw

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

---
 login-utils/sulogin.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
sulogin.c +1 -2
index b2c778a..7311ec1 100644
@@ -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
maintainer Applied
#1 lore raw
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