* src/login.c: ttytype already checks for TTYTYPE_FILE and TERM.
Just call ttytype.
This commit is contained in:
parent
29c3763f9c
commit
a6ac4dda75
@ -1,3 +1,8 @@
|
||||
2009-04-20 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* src/login.c: ttytype already checks for TTYTYPE_FILE and TERM.
|
||||
Just call ttytype.
|
||||
|
||||
2009-04-20 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* src/login.c: Open the PAM session before pam_setcred and before
|
||||
|
@ -1272,10 +1272,7 @@ int main (int argc, char **argv)
|
||||
addenv ("HUSHLOGIN=TRUE", NULL);
|
||||
}
|
||||
|
||||
if ( (NULL != getdef_str ("TTYTYPE_FILE"))
|
||||
&& (NULL == getenv ("TERM"))) {
|
||||
ttytype (tty);
|
||||
}
|
||||
|
||||
(void) signal (SIGQUIT, SIG_DFL); /* default quit signal */
|
||||
(void) signal (SIGTERM, SIG_DFL); /* default terminate signal */
|
||||
|
Loading…
Reference in New Issue
Block a user