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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <werner@xxxxxxx>
---
 login-utils/sulogin.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git login-utils/sulogin.c login-utils/sulogin.c
index b2c778a..7311ec1 100644
--- login-utils/sulogin.c
+++ login-utils/sulogin.c
@@ -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;
-- 
2.6.2

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux