Skip to contentSkip to conversation

agetty: fix autodetection for TERM

PATCH Applied Michal Schmidt 2 participants 3 messages Oct 29, 2012 – Nov 2, 2012 Util-Linux package

lore
Share & tools
lore
#0 lore raw

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
index e53a701..2480f7d 100644
@@ -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
maintainer Applied
#1 lore raw
Quoted 2 lines · Michal Schmidt

open_tty() autodetects whether to set TERM to "linux" or "vt102", but it can apply the result only if op->term is 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
#2 lore raw

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 if op->term is 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