]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
* src/login.c: ttytype already checks for TTYTYPE_FILE and TERM.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 20 Apr 2009 13:12:09 +0000 (13:12 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Mon, 20 Apr 2009 13:12:09 +0000 (13:12 +0000)
Just call ttytype.

ChangeLog
src/login.c

index de02729a6d1b4ddd052c7b2d45408b29e7e05276..746b0245b1dab4c73bc038830eec7b021f4f1805 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index b31a9f80536fd29560d681e9208400f38ce6cf21..58137fb27405b1f4eb55746553f60e09779a00f7 100644 (file)
@@ -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);
-       }
+       ttytype (tty);
 
        (void) signal (SIGQUIT, SIG_DFL);       /* default quit signal */
        (void) signal (SIGTERM, SIG_DFL);       /* default terminate signal */