]> 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, 16 Nov 2012 10:25:12 +0000 (11:25 +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 43243f92ad87e396d493f53c984fd16dd7c54dd6..7ee252d4a40fd08564e6fb45b1e0f5193be7e9c1 100644 (file)
@@ -279,7 +279,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];