* src/login.c: Check that no username is specified with -r.
* src/login.c: Make sure a username is specified with -f.
This commit is contained in:
parent
c813e692a2
commit
29d4533047
@ -4,6 +4,8 @@
|
||||
* src/login.c: Copy the name of the user authenticated by PAM to
|
||||
username. This simplify later logging (avoid USE_PAM
|
||||
conditional).
|
||||
* src/login.c: Check that no username is specified with -r.
|
||||
* src/login.c: Make sure a username is specified with -f.
|
||||
|
||||
2008-09-20 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
|
@ -339,6 +339,15 @@ static void process_flags (int argc, char *const *argv)
|
||||
++optind;
|
||||
}
|
||||
|
||||
#ifdef RLOGIN
|
||||
if (rflg && (NULL != username)) {
|
||||
usage ();
|
||||
}
|
||||
#endif /* RLOGIN */
|
||||
if (fflg && (NULL == username)) {
|
||||
usage ();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user