Make sure is_console is only defined when USE_PAM is not defined.

This commit is contained in:
nekral-guest 2007-12-08 23:27:35 +00:00
parent 462794685f
commit 9ac8c65e37
2 changed files with 9 additions and 0 deletions

View File

@ -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.

View File

@ -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