Skip to content

Commit

Permalink
Reversed the check for strchr(). If strchr(varp, '=') is true then we
Browse files Browse the repository at this point in the history
reject the bad environment variable as it contains an =.


git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6993 dc483132-0cff-0310-8789-dd5450dbe970
  • Loading branch information
probe committed Oct 24, 1995
1 parent cdfb5c7 commit 6f6aca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/appl/telnet/telnetd/state.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6f6aca2

Please sign in to comment.