ubase

suckless linux base utils
git clone git://git.2f30.org/ubase
Log | Files | Refs | README | LICENSE

commit aaea1e9ff71a4ea5aa1da684a5c2a98a3755c2c7
parent 9146cebd97151057922a7208958822b4d71f5814
Author: sin <sin@2f30.org>
Date:   Mon,  2 Jun 2014 17:02:01 +0100

Print getpass() errors on a newline

Diffstat:
Mlogin.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/login.c b/login.c @@ -67,9 +67,9 @@ main(int argc, char *argv[]) ioctl(STDIN_FILENO, TCFLSH, (void *)0); pass = getpass("Password: "); + putchar('\n'); if (!pass) eprintf("getpass:"); - putchar('\n'); cryptpass = crypt(pass, pw->pw_passwd); explicit_bzero(pass, strlen(pass)); if (!cryptpass)