From fe910aa69a0680ad6ec030ae6a568dc3d1e87683 Mon Sep 17 00:00:00 2001 From: asmodai Date: Thu, 30 Nov 2000 13:14:54 +0000 Subject: [PATCH] Add more environment variables to be filtered through scrub_env(). Synched from normal telnet. git-svn-id: http://svn0.us-east.freebsd.org/base/head/contrib/telnet@69389 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- telnetd/sys_term.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/telnetd/sys_term.c b/telnetd/sys_term.c index 235e409..5e28390 100644 --- a/telnetd/sys_term.c +++ b/telnetd/sys_term.c @@ -1856,6 +1856,13 @@ scrub_env() strncmp(*cpp, "_RLD_", 5) && strncmp(*cpp, "LIBPATH=", 8) && #endif + strncmp(*cpp, "LOCALDOMAIN=", 12) && + strncmp(*cpp, "RES_OPTIONS=", 12) && + strncmp(*cpp, "TERMINFO=", 9) && + strncmp(*cpp, "TERMINFO_DIRS=", 14) && + strncmp(*cpp, "TERMPATH=", 9) && + strncmp(*cpp, "TERMCAP=/", 9) && + strncmp(*cpp, "ENV=", 4) && strncmp(*cpp, "IFS=", 4)) *cpp2++ = *cpp; }