Make sure is_console is only defined when USE_PAM is not defined.
This commit is contained in:
parent
462794685f
commit
9ac8c65e37
@ -1,3 +1,8 @@
|
||||
2007-12-09 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* src/login.c: Make sure is_console is only defined when USE_PAM
|
||||
is not defined.
|
||||
|
||||
2007-12-09 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* libmisc/pwd2spwd.c: Fix time() prototype.
|
||||
|
@ -334,7 +334,9 @@ int main (int argc, char **argv)
|
||||
int failed;
|
||||
int flag;
|
||||
int subroot = 0;
|
||||
#ifndef USE_PAM
|
||||
int is_console;
|
||||
#endif
|
||||
int err;
|
||||
const char *cp;
|
||||
char *tmp;
|
||||
@ -440,7 +442,9 @@ int main (int argc, char **argv)
|
||||
*/
|
||||
checkutmp (!amroot);
|
||||
STRFCPY (tty, utent.ut_line);
|
||||
#ifndef USE_PAM
|
||||
is_console = console (tty);
|
||||
#endif
|
||||
|
||||
if (rflg || hflg) {
|
||||
#ifdef UT_ADDR
|
||||
|
Loading…
Reference in New Issue
Block a user