From 32c27cecbe7ab3bdf0cbc984c50b37fbe231e79d Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Wed, 17 Feb 2021 23:34:08 +0100 Subject: Set the DEBUG environment variable to 0/1 instead of ""/1. --- lacme | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lacme') diff --git a/lacme b/lacme index 354a4a0..d2d8840 100755 --- a/lacme +++ b/lacme @@ -376,7 +376,7 @@ sub spawn_webserver() { drop_privileges($conf->{user}, $conf->{group}, $tmpdir); open STDIN, '<', '/dev/null' or die "open(/dev/null): $!"; set_FD_CLOEXEC($sock, 0); - $ENV{DEBUG} = $OPTS{debug}; + $ENV{DEBUG} = $OPTS{debug} // 0; # use execve(2) rather than a Perl pseudo-process to ensure that # the child doesn't have access to the parent's memory exec $conf->{command}, fileno($sock) or die; @@ -552,7 +552,7 @@ sub acme_client($@) { drop_privileges($conf->{user}, $conf->{group}, $args->{chdir} // '/'); set_FD_CLOEXEC($_, 0) foreach ($CONFFILE, $client); seek($CONFFILE, SEEK_SET, 0) or die "seek: $!"; - $ENV{DEBUG} = $OPTS{debug}; + $ENV{DEBUG} = $OPTS{debug} // 0; }}, $conf->{command}, $COMMAND, @fileno, @args); if (defined $cleanup) { -- cgit v1.2.3