PATCH: SU110-001 CHANGES: usr.bin/telnet/telnet.c SUMMARY: The 1.1 telnet client sends the environment incorrectly when talking to a server that supports the new environment option. The problem is apparent when connecting to the 1.1 telnet daemon, but not older versions (including the 1.0 telnetd) which didn't support the new option. This is the source version of the patch. If you don't want to rebuild telnet, you can use the binary version of the patch (BU110-001). INSTALLATION: cd usr.bin/telnet patch < this_file # then rebuild your telnetd =================================================================== *** telnet.c.org Mon Dec 20 13:00:23 1993 --- telnet.c Tue Mar 1 14:39:29 1994 *************** *** 1670,1676 **** *opt_replyp++ = c; } if (ep = vp) { ! *opt_replyp++ = oenv_value; vp = NULL; } else break; ---- 1670,1681 ---- *opt_replyp++ = c; } if (ep = vp) { ! #ifdef OLD_ENVIRON ! if (telopt_environ == TELOPT_OENVIRON) ! *opt_replyp++ = oenv_value; ! else ! #endif ! *opt_replyp++ = ENV_VALUE; vp = NULL; } else break;