diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2015-08-25 20:52:45 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2015-08-25 20:52:45 +0000 |
commit | 64170048ca7528cf21efc2554ce19ce3c747b25e (patch) | |
tree | 5c283530059af4bf75d366f269844983f8d65cb3 /regress | |
parent | 014c1ead42171cd5cf37ba409e643103f944e206 (diff) |
Do not inherit the event environment, delete and set explicitly
after sudo.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.sbin/syslogd/Syslogd.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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 <bluhm@openbsd.org> # Copyright (c) 2014 Florian Riehm <mail@friehm.de> @@ -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} || (); |