]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: fix autodetection for TERM
authorMichal Schmidt <mschmidt@redhat.com>
Mon, 29 Oct 2012 22:33:01 +0000 (23:33 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 2 Nov 2012 11:38:25 +0000 (12:38 +0100)
open_tty() autodetects whether to set TERM to "linux" or "vt102", but it
can apply the result only if op->term is still NULL.

term-utils/agetty.c

index e53a70188eb89a1fc967be145995cb56dde6eaa3..2480f7ddeb78cd233570f25aee432b760bb1bd85 100644 (file)
@@ -283,7 +283,6 @@ int main(int argc, char **argv)
                .flags  =  F_ISSUE,             /* show /etc/issue (SYSV_STYLE) */
                .login  =  _PATH_LOGIN,         /* default login program */
                .tty    = "tty1",               /* default tty line */
-               .term   =  DEFAULT_VCTERM,      /* terminal type */
                .issue  =  ISSUE                /* default issue file */
        };
        char *login_argv[LOGIN_ARGV_MAX + 1];