summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-02-16 05:59:43 +0000
committerderaadt <deraadt@openbsd.org>1997-02-16 05:59:43 +0000
commit15fa40885fb42244e35cc4a6b666bcc21dab5f28 (patch)
tree4537f54e50653868c1fd3cfcc85495f4bff423f3
parentudp packets less than min udp packet length are bad; davem@jenolan.rutgers.edu (diff)
downloadwireguard-openbsd-15fa40885fb42244e35cc4a6b666bcc21dab5f28.tar.xz
wireguard-openbsd-15fa40885fb42244e35cc4a6b666bcc21dab5f28.zip
block $ENV too, sigh
-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;
}