[hackers] [ubase] Simplify login || FRIGN
commit af65094dbe9ad4287ce5ed093eed909e48957965
Author: FRIGN <dev_AT_frign.de>
Date: Mon Jun 2 18:04:12 2014 +0200
Simplify login
Remove some unnecessary local values, simplify the exec-call at the end
(we don't need the separate array) and print clearer and more consistent
error-messages.
diff --git a/login.c b/login.c
index c2f628f..3c8d6e0 100644
--- a/login.c
+++ b/login.c
_AT_@ -24,8 +24,6 @@ int
main(int argc, char *argv[])
{
struct passwd *pw;
- uid_t uid;
- gid_t gid;
char *pass, *cryptpass;
int pflag = 0;
_AT_@ -50,15 +48,12 @@ main(int argc, char *argv[])
switch (pw->pw_passwd[0]) {
case '!':
case '*':
- eprintf("Denied
");
+ eprintf("denied
");
}
if (pw->pw_passwd[0] == 'x' && pw->pw_passwd[1] == '
Received on Mon Jun 02 2014 - 18:15:40 CEST
This archive was generated by hypermail 2.3.0
: Mon Jun 02 2014 - 18:24:23 CEST