aboutsummaryrefslogtreecommitdiffstats
path: root/webserver
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2017-07-01 19:36:46 +0200
committerGuilhem Moulin <guilhem@fripost.org>2017-07-01 19:36:46 +0200
commit7a4e51344423ee3309c258087a69dac29bf30b51 (patch)
treebd9dc6fcab0f299c7ac4b9903107994d495f6d20 /webserver
parent7f674213fb08129bd379d2f87e401a42899a60b8 (diff)
Ensure fdopen is called with an integer.
Diffstat (limited to 'webserver')
-rwxr-xr-xwebserver2
1 files changed, 1 insertions, 1 deletions
diff --git a/webserver b/webserver
index 90be70c..dad3d9d 100755
--- a/webserver
+++ b/webserver
@@ -43,7 +43,7 @@ use Socket qw/AF_UNIX AF_INET AF_INET6/;
# Untaint and fdopen(3) the listening socket
(shift @ARGV // die) =~ /\A(\d+)\z/ or die;
-open my $S, '+<&=', $1 or die "fdopen $1: $!";
+open (my $S, '+<&=', $1+0) or die "fdopen $1: $!";
my $ROOT = '/.well-known/acme-challenge';
close STDIN or die "close: $!";