agetty: fix autodetection for TERM
PATCH 1/1 agetty: fix autodetection for TERM
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 | 1 - 1 file changed, 1 deletion(-)
term-utils/agetty.c +0 -1
@@ -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 ];
Signature · 1 line
1.7.11.7
Quoted 2 lines · Michal Schmidt
open_tty()autodetects whether to set TERM to "linux" or "vt102", but it can apply the result only ifop->termis still NULL.
Oh, nice. Do you have any reference to bugzilla?
Quoted 3 lines
--- term-utils/agetty.c | 1 - 1 file changed, 1 deletion(-)
Applied, thanks!
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com
Dne 2.11.2012 12:40, Karel Zak napsal(a):
Quoted 5 lines · Michal Schmidt
Quoted 2 lines
open_tty()autodetects whether to set TERM to "linux" or "vt102", but it can apply the result only ifop->termis still NULL.Oh, nice. Do you have any reference to bugzilla?
I discovered it while looking into this systemd bug:
https://bugzilla.redhat.com/show_bug.cgi?id=870622#c1
Michal