Created
February 28, 2021 20:41
-
-
Save timb-machine/3f68b6500daa60d5504272f0b09dfaec to your computer and use it in GitHub Desktop.
accept-environment.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Description: Accept environment changes. | |
Accept environment changes during negotiation by the client. | |
Author: Tim Brown <[email protected]> | |
--- | |
The information above should follow the Patch Tagging Guidelines, please | |
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here | |
are templates for supplementary fields that you might want to add: | |
Origin: <vendor|upstream|other>, <url of original patch> | |
Bug: <url in upstream bugtracker> | |
Bug-Debian: https://bugs.debian.org/<bugnumber> | |
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> | |
Forwarded: <no|not-needed|url proving that it has been forwarded> | |
Reviewed-By: <name and email of someone who approved the patch> | |
Last-Update: 2021-02-20 | |
--- inetutils-1.9.4.orig/telnetd/state.c | |
+++ inetutils-1.9.4/telnetd/state.c | |
@@ -675,7 +675,7 @@ willoption (int option) | |
if (changeok) | |
{ | |
set_his_want_state_will (option); | |
- send_do (option, 0); | |
+ send_do (option, 1); | |
} | |
else | |
{ | |
--- inetutils-1.9.4.orig/telnetd/telnetd.c | |
+++ inetutils-1.9.4/telnetd/telnetd.c | |
@@ -1,4 +1,4 @@ | |
-/* | |
+u* | |
Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, | |
2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, | |
2013, 2014, 2015 Free Software Foundation, Inc. | |
@@ -557,6 +557,8 @@ telnetd_run (void) | |
a BSD 4.2 it will answer "WILL ECHO". See the response processing | |
below. */ | |
send_do (TELOPT_ECHO, 1); | |
+ send_do (TELOPT_OLD_ENVIRON, 1); | |
+ send_do (TELOPT_NEW_ENVIRON, 1); | |
if (his_state_is_wont (TELOPT_LINEMODE)) | |
{ | |
/* Query the peer for linemode support by trying to negotiate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment