From: Tom Yu Date: Fri, 26 Jan 2001 01:19:04 +0000 (+0000) Subject: * state.c (envvarok): Disallow LC_* and NLSPATH X-Git-Tag: krb5-1.3-alpha1~1687 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a509604d931515aea751a82df2fbc49d5ebdd393;p=krb5.git * state.c (envvarok): Disallow LC_* and NLSPATH git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12946 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/telnet/telnetd/ChangeLog b/src/appl/telnet/telnetd/ChangeLog index c815eb0c4..b03b62efe 100644 --- a/src/appl/telnet/telnetd/ChangeLog +++ b/src/appl/telnet/telnetd/ChangeLog @@ -1,3 +1,7 @@ +2001-01-25 Tom Yu + + * state.c (envvarok): Disallow LC_* and NLSPATH. + 2000-12-06 Ken Raeburn * telnetd.c (doit): Cast pty_make_sane_hostname first argument to diff --git a/src/appl/telnet/telnetd/state.c b/src/appl/telnet/telnetd/state.c index 83e1840f9..33743e43e 100644 --- a/src/appl/telnet/telnetd/state.c +++ b/src/appl/telnet/telnetd/state.c @@ -1663,6 +1663,8 @@ static int envvarok(varp) strcmp(varp, "KRB_REALMS") && /* cns v4 */ strcmp(varp, "LIBPATH") && /* AIX */ strcmp(varp, "RESOLV_HOST_CONF") && /* linux */ + strcmp(varp, "NLSPATH") && /* locale stuff */ + strncmp(varp, "LC_", strlen("LC_")) && /* locale stuff */ strcmp(varp, "IFS")) { return 1; } else {