diff options
author | ache <ache@FreeBSD.org> | 2002-06-28 22:56:31 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2002-06-28 22:56:31 +0000 |
commit | 80e95acffcd6ad20451f9dc5b98f7882853be906 (patch) | |
tree | 5315b1b0cb0a8360bbfa3b521cd49749693a8493 /usr.bin/login | |
parent | d1029cb00e4bc8ab3843feb7e4d1f06766113708 (diff) | |
download | FreeBSD-src-80e95acffcd6ad20451f9dc5b98f7882853be906.zip FreeBSD-src-80e95acffcd6ad20451f9dc5b98f7882853be906.tar.gz |
Simplify TERM handling since now libutil not overwrites existen TERM for "term"
Diffstat (limited to 'usr.bin/login')
-rw-r--r-- | usr.bin/login/login.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index ab6f6d8..5759631 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -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); |