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>
|
2007-12-09 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* libmisc/pwd2spwd.c: Fix time() prototype.
|
* libmisc/pwd2spwd.c: Fix time() prototype.
|
||||||
|
@ -334,7 +334,9 @@ int main (int argc, char **argv)
|
|||||||
int failed;
|
int failed;
|
||||||
int flag;
|
int flag;
|
||||||
int subroot = 0;
|
int subroot = 0;
|
||||||
|
#ifndef USE_PAM
|
||||||
int is_console;
|
int is_console;
|
||||||
|
#endif
|
||||||
int err;
|
int err;
|
||||||
const char *cp;
|
const char *cp;
|
||||||
char *tmp;
|
char *tmp;
|
||||||
@ -440,7 +442,9 @@ int main (int argc, char **argv)
|
|||||||
*/
|
*/
|
||||||
checkutmp (!amroot);
|
checkutmp (!amroot);
|
||||||
STRFCPY (tty, utent.ut_line);
|
STRFCPY (tty, utent.ut_line);
|
||||||
|
#ifndef USE_PAM
|
||||||
is_console = console (tty);
|
is_console = console (tty);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (rflg || hflg) {
|
if (rflg || hflg) {
|
||||||
#ifdef UT_ADDR
|
#ifdef UT_ADDR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user