ubase

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

commit 634e77a1a54de28c94ab9f8d763b90e5eaef3a79
parent e75c56ad6a21ba8975b4143eba47c3e7ddd55195
Author: sin <sin@2f30.org>
Date:   Thu Feb 27 14:57:22 +0000

Simply use eprintf() instead of enprintf()

Diffstat:
su.c | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/su.c b/su.c @@ -58,16 +58,16 @@ main(int argc, char **argv) if (errno) eprintf("getspnam: %s:", usr); else if (!spw) - enprintf(EXIT_FAILURE, "who are you?\n"); + eprintf("who are you?\n"); switch (spw->sp_pwdp[0]) { case '!': case '*': - enprintf(EXIT_FAILURE, "Denied\n"); + eprintf("Denied\n"); case '$': break; default: - enprintf(EXIT_FAILURE, "Invalid shadow record\n"); + eprintf("Invalid shadow record\n"); } uid = getuid(); @@ -83,7 +83,7 @@ main(int argc, char **argv) eprintf("crypt:"); if (strcmp(cryptpass, spw->sp_pwdp) != 0) - enprintf(EXIT_FAILURE, "Denied\n"); + eprintf("Denied\n"); } errno = 0; @@ -91,7 +91,7 @@ main(int argc, char **argv) if (errno) eprintf("getpwnam: %s", usr); else if (!pw) - enprintf(EXIT_FAILURE, "who are you?\n"); + eprintf("who are you?\n"); if (initgroups(usr, pw->pw_gid) < 0) eprintf("initgroups:");