mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
getty: Set $TERM environment variable if given in tty config
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -341,6 +341,8 @@ int getty(char *tty, char *baud, char *term, char *user)
|
||||
stty(fd, speed);
|
||||
close(fd);
|
||||
utmp_set_login(tty, NULL);
|
||||
if (term)
|
||||
setenv("TERM", term, 1);
|
||||
|
||||
if (!user)
|
||||
do_getty(tty, name, sizeof(name));
|
||||
|
||||
Reference in New Issue
Block a user