From 6ba9ba4297552a34732a3bed13d8d07595a426b6 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Sun, 22 Oct 1995 17:46:15 +0000 Subject: [PATCH] Minor fix to last commit git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6980 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/telnet/telnetd/ChangeLog | 4 ++++ src/appl/telnet/telnetd/state.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/appl/telnet/telnetd/ChangeLog b/src/appl/telnet/telnetd/ChangeLog index 21393afe6..2e163adac 100644 --- a/src/appl/telnet/telnetd/ChangeLog +++ b/src/appl/telnet/telnetd/ChangeLog @@ -1,3 +1,7 @@ +Sat Oct 21 15:37:55 1995 Sam Hartman + + * state.c (envvarok): Also check for variables involving =. + Thu Oct 19 01:28:23 1995 Mark W. Eichin * state.c (envvarok): New function, checks environment variables diff --git a/src/appl/telnet/telnetd/state.c b/src/appl/telnet/telnetd/state.c index 8394dee48..1cb56c02d 100644 --- a/src/appl/telnet/telnetd/state.c +++ b/src/appl/telnet/telnetd/state.c @@ -1084,7 +1084,8 @@ static int envvarok(varp) char *varp; { - if (strncmp(varp, "LD_", strlen("LD_")) && + if ((strchr(varp, '=') == 0) && + strncmp(varp, "LD_", strlen("LD_")) && strncmp(varp, "_RLD_", strlen("_RLD_")) && strcmp(varp, "LIBPATH") && strcmp(varp, "IFS")) { -- 2.26.2