diff options
-rw-r--r-- | Changelog | 1 | ||||
-rwxr-xr-x | lacme | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -54,6 +54,7 @@ lacme (0.7.1) upstream; - webserver: reopen stdin from /dev/null. - Use 'acme-challenge.XXXXXXXXXX' as template for the temporary ACME challenge directory. + - Set the DEBUG environment variable to 0/1 instead of ""/1. -- Guilhem Moulin <guilhem@fripost.org> Wed, 09 Dec 2020 18:23:22 +0100 @@ -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) { |