1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Description: Avoid unsetting environment variable TERM.
Do not reset TERM to "UNKNOWN", when it is unknown in the local host.
Author: Philippe Troin
Bug-Debian: https://bugs.debian.org/237324
Comment: interdiff netkit-telnet_0.17-{34,36}.diff
Forwarded: no
Last-Update: 2008-06-22
--- a/telnet/telnet.cc
+++ b/telnet/telnet.cc
@@ -699,7 +699,7 @@
if (resettermname) {
resettermname = 0;
tname = env_getvalue("TERM", 0);
- if (!tname || my_setupterm(tname, 1, &err)) {
+ if (!tname /* || my_setupterm(tname, 1, &err) */) {
termbuf[0] = 0;
tname = "UNKNOWN";
}
|