[hackers] [ubase] Print errors on the next line || sin

From: <git_AT_suckless.org>
Date: Thu, 05 Jun 2014 18:21:01 +0200

commit 2ea51e8cd8c60c22adfb0ad5bfd4e4e589a9605a
Author: sin <sin_AT_2f30.org>
Date: Thu Jun 5 17:16:35 2014 +0100

    Print errors on the next line

diff --git a/login.c b/login.c
index 54c0046..68b0c34 100644
--- a/login.c
+++ b/login.c
_AT_@ -68,6 +68,7 @@ main(int argc, char *argv[])
         ioctl(STDIN_FILENO, TCFLSH, (void *)0);
 
         pass = getpass("Password: ");
+ putchar('
');
         if (!pass)
                 eprintf("getpass:");
 
diff --git a/su.c b/su.c
index 8d8caec..8c8d21c 100644
--- a/su.c
+++ b/su.c
_AT_@ -76,6 +76,7 @@ main(int argc, char *argv[])
         uid = getuid();
         if (uid) {
                 pass = getpass("Password: ");
+ putchar('
');
                 if (!pass)
                         eprintf("getpass:");
         }
Received on Thu Jun 05 2014 - 18:21:01 CEST

This archive was generated by hypermail 2.3.0 : Thu Jun 05 2014 - 18:24:13 CEST