Minor fix to last commit
authorSam Hartman <hartmans@mit.edu>
Sun, 22 Oct 1995 17:46:15 +0000 (17:46 +0000)
committerSam Hartman <hartmans@mit.edu>
Sun, 22 Oct 1995 17:46:15 +0000 (17:46 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6980 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/telnet/telnetd/ChangeLog
src/appl/telnet/telnetd/state.c

index 21393afe6d2060af96d5689b3b9272d977b9d883..2e163adace1e0f6bb45a23fe28d73c49ec9785e3 100644 (file)
@@ -1,3 +1,7 @@
+Sat Oct 21 15:37:55 1995  Sam Hartman  <hartmans@tertius.mit.edu>
+
+       * state.c (envvarok): Also check for variables involving =.
+
 Thu Oct 19 01:28:23 1995  Mark W. Eichin  <eichin@cygnus.com>
 
        * state.c (envvarok): New function, checks environment variables
index 8394dee48c5d7b2347513b93275d4c0798ecdaf7..1cb56c02d3ac9789e51743a741bc10ad2fd74059 100644 (file)
@@ -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")) {