commit af65094dbe9ad4287ce5ed093eed909e48957965 Author: FRIGN <d...@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 @@ -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; @@ -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] == '