[hackers] [ubase] Only try to ask for a password and check if uid is != 0 || sin

From: <git_AT_suckless.org>
Date: Fri, 18 Oct 2013 11:26:52 +0200

commit 86566f4cebaeaccf58b711b02432bf443ebb64f7
Author: sin <sin_AT_2f30.org>
Date: Fri Oct 18 10:25:39 2013 +0100

    Only try to ask for a password and check if uid is != 0

diff --git a/su.c b/su.c
index 5531e63..736a2f3 100644
--- a/su.c
+++ b/su.c
_AT_@ -61,16 +61,16 @@ main(int argc, char **argv)
                 pass = getpass("Password: ");
                 if (!pass)
                         eprintf("getpass:");
- }
 
- cryptpass = crypt(pass, spw->sp_pwdp);
- for (i = 0; pass[i]; i++)
- pass[i] = '
Received on Fri Oct 18 2013 - 11:26:52 CEST

This archive was generated by hypermail 2.3.0 : Fri Oct 18 2013 - 11:36:26 CEST