From: Sam Hartman Date: Sun, 22 Oct 1995 17:46:15 +0000 (+0000) Subject: Minor fix to last commit X-Git-Tag: krb5-1.0-beta6~889 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6ba9ba4297552a34732a3bed13d8d07595a426b6;p=krb5.git Minor fix to last commit git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6980 dc483132-0cff-0310-8789-dd5450dbe970 --- 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")) {