From 6075fdfe92b66298065d49b68d99c161f0448376 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 16 Aug 1996 23:32:45 +0000 Subject: ENV is unsafe to pass; from dholland@hcs.harvard.edu --- libexec/telnetd/state.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libexec/telnetd/state.c') diff --git a/libexec/telnetd/state.c b/libexec/telnetd/state.c index 1d14d5efe56..b1c9c2b7291 100644 --- a/libexec/telnetd/state.c +++ b/libexec/telnetd/state.c @@ -1,4 +1,4 @@ -/* $OpenBSD: state.c,v 1.3 1996/03/28 23:21:59 niklas Exp $ */ +/* $OpenBSD: state.c,v 1.4 1996/08/16 23:32:44 deraadt Exp $ */ /* $NetBSD: state.c,v 1.9 1996/02/28 20:38:19 thorpej Exp $ */ /* @@ -39,7 +39,7 @@ static char sccsid[] = "@(#)state.c 8.5 (Berkeley) 5/30/95"; static char rcsid[] = "$NetBSD: state.c,v 1.9 1996/02/28 20:38:19 thorpej Exp $"; #else -static char rcsid[] = "$OpenBSD: state.c,v 1.3 1996/03/28 23:21:59 niklas Exp $"; +static char rcsid[] = "$OpenBSD: state.c,v 1.4 1996/08/16 23:32:44 deraadt Exp $"; #endif #endif /* not lint */ @@ -1065,6 +1065,7 @@ envvarok(varp) return (strncmp(varp, "LD_", strlen("LD_")) && strncmp(varp, "_RLD_", strlen("_RLD_")) && strcmp(varp, "LIBPATH") && + strcmp(varp, "ENV") && strcmp(varp, "IFS")); } -- cgit v1.2.3