summaryrefslogtreecommitdiff
path: root/libexec/telnetd/sys_term.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-02-16 05:59:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-02-16 05:59:44 +0000
commit98ff4360a0e41005c43eab6cf8c4fa05b2be4ed2 (patch)
tree24e7094b3a8453274822fb2a908c9c75e36d2e11 /libexec/telnetd/sys_term.c
parentd4a6324d5f5d6048f599eecc27355105442a0ead (diff)
block $ENV too, sigh
Diffstat (limited to 'libexec/telnetd/sys_term.c')
-rw-r--r--libexec/telnetd/sys_term.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/telnetd/sys_term.c b/libexec/telnetd/sys_term.c
index 903eebf74c3..8ac411d4839 100644
--- a/libexec/telnetd/sys_term.c
+++ b/libexec/telnetd/sys_term.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_term.c,v 1.5 1996/12/23 14:29:46 robin Exp $ */
+/* $OpenBSD: sys_term.c,v 1.6 1997/02/16 05:59:43 deraadt Exp $ */
/* $NetBSD: sys_term.c,v 1.9 1996/03/20 04:25:53 tls Exp $ */
/*
@@ -39,7 +39,7 @@
static char sccsid[] = "@(#)sys_term.c 8.4+1 (Berkeley) 5/30/95";
static char rcsid[] = "$NetBSD: sys_term.c,v 1.8 1996/02/28 20:38:21 thorpej Exp $";
#else
-static char rcsid[] = "$OpenBSD: sys_term.c,v 1.5 1996/12/23 14:29:46 robin Exp $";
+static char rcsid[] = "$OpenBSD: sys_term.c,v 1.6 1997/02/16 05:59:43 deraadt Exp $";
#endif
#endif /* not lint */
@@ -1853,6 +1853,7 @@ scrub_env()
if (strncmp(*cpp, "LD_", 3) &&
strncmp(*cpp, "_RLD_", 5) &&
strncmp(*cpp, "LIBPATH=", 8) &&
+ strncmp(*cpp, "ENV=", 4) &&
strncmp(*cpp, "IFS=", 4))
*cpp2++ = *cpp;
}