From 622be3d0f5937f863037ee25cda76ff09fb3b19e Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Tue, 24 Oct 1995 23:11:06 +0000 Subject: [PATCH] Reversed the check for strchr(). If strchr(varp, '=') is true then we reject the bad environment variable as it contains an =. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6993 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/telnet/telnetd/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/appl/telnet/telnetd/state.c b/src/appl/telnet/telnetd/state.c index b364dfff1..921425980 100644 --- a/src/appl/telnet/telnetd/state.c +++ b/src/appl/telnet/telnetd/state.c @@ -1629,7 +1629,7 @@ char *varp; if (!strncmp(varp, "LD_", 3) || !strncmp(varp, "_RLD_", 5) || !strncmp(varp, "ELF_LD_", 7) || !strcmp(varp, "LIBPATH") || !strcmp(varp, "IFS") || - !strchr(varp, '=')) + strchr(varp, '=')) { syslog(LOG_INFO, "Rejected the attempt to modify the environment variable \"%s\"", varp); return 0; -- 2.26.2