summaryrefslogtreecommitdiff
path: root/security/krb5-17/files/patch-appl-telnet-telnetd-state.c
blob: 9a9b8f2b5d91a2f1136e59379e481e1c06bdefe0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- appl/telnet/telnetd/state.c.orig	Thu Jun 15 15:42:53 2006
+++ appl/telnet/telnetd/state.c	Wed Apr  4 14:02:18 2007
@@ -1665,7 +1665,8 @@
 	    strcmp(varp, "RESOLV_HOST_CONF") && /* linux */
 	    strcmp(varp, "NLSPATH") && /* locale stuff */
 	    strncmp(varp, "LC_", strlen("LC_")) && /* locale stuff */
-	    strcmp(varp, "IFS")) {
+	    strcmp(varp, "IFS") &&
+	    !strchr(varp, '-')) {
 		return 1;
 	} else {
 		syslog(LOG_INFO, "Rejected the attempt to modify the environment variable \"%s\"", varp);