mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-28 20:55:21 +00:00
Fix a couple of little bugs that prevented login.c from compiling
if LOGIN_CAP_AUTH was defined. This is kind of silly, because LOGIN_CAP_AUTH doesn't work anyway, is not defined currently, probably will never be defined, and IMHO should not be defined. But I'm sure you'll sleep better tonight, knowing that these bugs are gone.
This commit is contained in:
parent
deec8506c1
commit
79bdd98bf7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37812
|
@ -42,7 +42,7 @@ static char copyright[] =
|
|||
static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id: login.c,v 1.34 1998/04/30 16:50:07 peter Exp $";
|
||||
"$Id: login.c,v 1.35 1998/06/01 08:47:04 amurai Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
|
@ -414,7 +414,7 @@ main(argc, argv)
|
|||
}
|
||||
|
||||
if (!rval) {
|
||||
char * approvp;
|
||||
char * approvep;
|
||||
|
||||
/*
|
||||
* If authentication succeeds, run any approval
|
||||
|
@ -432,7 +432,7 @@ main(argc, argv)
|
|||
/*
|
||||
* See what the authorize program says
|
||||
*/
|
||||
if (r != AUTH_NONE) {
|
||||
if (r != 0) {
|
||||
rval = 0;
|
||||
|
||||
if (!rootok && (r & AUTH_ROOTOKAY))
|
||||
|
|
Loading…
Reference in a new issue