[hackers] [ubase] Print getpass() errors on a newline || sin

From: <git_AT_suckless.org>
Date: Mon, 02 Jun 2014 18:06:42 +0200

commit aaea1e9ff71a4ea5aa1da684a5c2a98a3755c2c7
Author: sin <sin_AT_2f30.org>
Date: Mon Jun 2 17:02:01 2014 +0100

    Print getpass() errors on a newline

diff --git a/login.c b/login.c
index 3adf188..c2f628f 100644
--- a/login.c
+++ b/login.c
_AT_@ -67,9 +67,9 @@ main(int argc, char *argv[])
         ioctl(STDIN_FILENO, TCFLSH, (void *)0);
 
         pass = getpass("Password: ");
+ putchar('
');
         if (!pass)
                 eprintf("getpass:");
- putchar('
');
         cryptpass = crypt(pass, pw->pw_passwd);
         explicit_bzero(pass, strlen(pass));
         if (!cryptpass)
Received on Mon Jun 02 2014 - 18:06:42 CEST

This archive was generated by hypermail 2.3.0 : Mon Jun 02 2014 - 18:12:12 CEST