* src/login.c: ttytype already checks for TTYTYPE_FILE and TERM.

Just call ttytype.
This commit is contained in:
nekral-guest 2009-04-20 13:12:09 +00:00
parent 29c3763f9c
commit a6ac4dda75
2 changed files with 6 additions and 4 deletions

View File

@ -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> 2009-04-20 Nicolas François <nicolas.francois@centraliens.net>
* src/login.c: Open the PAM session before pam_setcred and before * src/login.c: Open the PAM session before pam_setcred and before

View File

@ -1272,10 +1272,7 @@ int main (int argc, char **argv)
addenv ("HUSHLOGIN=TRUE", NULL); addenv ("HUSHLOGIN=TRUE", NULL);
} }
if ( (NULL != getdef_str ("TTYTYPE_FILE")) ttytype (tty);
&& (NULL == getenv ("TERM"))) {
ttytype (tty);
}
(void) signal (SIGQUIT, SIG_DFL); /* default quit signal */ (void) signal (SIGQUIT, SIG_DFL); /* default quit signal */
(void) signal (SIGTERM, SIG_DFL); /* default terminate signal */ (void) signal (SIGTERM, SIG_DFL); /* default terminate signal */