mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 04:43:32 +00:00
Simplify TERM handling since now libutil not overwrites existen TERM for "term"
This commit is contained in:
parent
52545a237b
commit
55f0377c44
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98990
@ -531,9 +531,7 @@ main(int argc, char *argv[])
|
||||
(void)setenv("SHELL", pwd->pw_shell, 1);
|
||||
(void)setenv("HOME", pwd->pw_dir, 1);
|
||||
/* Overwrite "term" from login.conf(5) for any known TERM */
|
||||
if (term != NULL)
|
||||
(void)setenv("TERM", term, 1);
|
||||
else if ((tp = stypeof(tty)) != NULL)
|
||||
if (term == NULL && (tp = stypeof(tty)) != NULL)
|
||||
(void)setenv("TERM", tp, 1);
|
||||
else
|
||||
(void)setenv("TERM", TERM_UNKNOWN, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user