[hackers] [ubase] Fix passwd semantics || sin
commit 1b6fab85d627114f1a8f7674e47b867e2d00d8a9
Author: sin <sin_AT_2f30.org>
Date: Mon Jun 9 12:46:40 2014 +0100
Fix passwd semantics
diff --git a/passwd.c b/passwd.c
index a69ce1e..ebf1431 100644
--- a/passwd.c
+++ b/passwd.c
_AT_@ -45,25 +45,26 @@ main(int argc, char *argv[])
else if (!pw)
eprintf("who are you?
");
- uid = getuid();
- if (uid == 0)
- goto newpass;
-
- switch (pw->pw_passwd[0]) {
- case '!':
- case '*':
- eprintf("denied
");
- }
+ if (pw->pw_passwd[0] == 'x' && pw->pw_passwd[1] == '
Received on Mon Jun 09 2014 - 13:52:52 CEST
This archive was generated by hypermail 2.3.0
: Mon Jun 09 2014 - 14:00:09 CEST