From 64170048ca7528cf21efc2554ce19ce3c747b25e Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Tue, 25 Aug 2015 20:52:45 +0000 Subject: Do not inherit the event environment, delete and set explicitly after sudo. --- regress/usr.sbin/syslogd/Syslogd.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'regress/usr.sbin/syslogd') diff --git a/regress/usr.sbin/syslogd/Syslogd.pm b/regress/usr.sbin/syslogd/Syslogd.pm index 9289a0f4206..e4e78cfcc15 100644 --- a/regress/usr.sbin/syslogd/Syslogd.pm +++ b/regress/usr.sbin/syslogd/Syslogd.pm @@ -1,4 +1,4 @@ -# $OpenBSD: Syslogd.pm,v 1.14 2015/07/20 05:34:16 bluhm Exp $ +# $OpenBSD: Syslogd.pm,v 1.15 2015/08/25 20:52:44 bluhm Exp $ # Copyright (c) 2010-2015 Alexander Bluhm # Copyright (c) 2014 Florian Riehm @@ -116,7 +116,7 @@ sub child { my @libevent; foreach (qw(EVENT_NOKQUEUE EVENT_NOPOLL EVENT_NOSELECT)) { - push @libevent, "$_=$ENV{$_}" if $ENV{$_}; + push @libevent, "$_=1" if delete $ENV{$_}; } push @libevent, "EVENT_SHOW_METHOD=1" if @libevent; my @ktrace = $ENV{KTRACE} || (); -- cgit v1.2.3