[hackers] [ubase] Simply use eprintf() instead of enprintf() || sin

From: <git_AT_suckless.org>
Date: Thu, 27 Feb 2014 15:59:38 +0100

commit 634e77a1a54de28c94ab9f8d763b90e5eaef3a79
Author: sin <sin_AT_2f30.org>
Date: Thu Feb 27 14:57:22 2014 +0000

    Simply use eprintf() instead of enprintf()

diff --git a/su.c b/su.c
index aa7f8af..16d876f 100644
--- a/su.c
+++ b/su.c
_AT_@ -58,16 +58,16 @@ main(int argc, char **argv)
         if (errno)
                 eprintf("getspnam: %s:", usr);
         else if (!spw)
- enprintf(EXIT_FAILURE, "who are you?
");
+ eprintf("who are you?
");
 
         switch (spw->sp_pwdp[0]) {
         case '!':
         case '*':
- enprintf(EXIT_FAILURE, "Denied
");
+ eprintf("Denied
");
         case '$':
                 break;
         default:
- enprintf(EXIT_FAILURE, "Invalid shadow record
");
+ eprintf("Invalid shadow record
");
         }
 
         uid = getuid();
_AT_@ -83,7 +83,7 @@ main(int argc, char **argv)
                         eprintf("crypt:");
 
                 if (strcmp(cryptpass, spw->sp_pwdp) != 0)
- enprintf(EXIT_FAILURE, "Denied
");
+ eprintf("Denied
");
         }
 
         errno = 0;
_AT_@ -91,7 +91,7 @@ main(int argc, char **argv)
         if (errno)
                 eprintf("getpwnam: %s", usr);
         else if (!pw)
- enprintf(EXIT_FAILURE, "who are you?
");
+ eprintf("who are you?
");
 
         if (initgroups(usr, pw->pw_gid) < 0)
                 eprintf("initgroups:");
Received on Thu Feb 27 2014 - 15:59:38 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 27 2014 - 16:00:15 CET