aboutsummaryrefslogtreecommitdiffstats
path: root/client
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 /client
parent7f674213fb08129bd379d2f87e401a42899a60b8 (diff)
Ensure fdopen is called with an integer.
Diffstat (limited to 'client')
-rwxr-xr-xclient4
1 files changed, 2 insertions, 2 deletions
diff --git a/client b/client
index 333ae3b..f0778d5 100755
--- a/client
+++ b/client
@@ -62,9 +62,9 @@ my $COMMAND = shift @ARGV // die;
# Untaint and fdopen(3) the configuration file and listening socket
(shift @ARGV // die) =~ /\A(\d+)\z/ or die;
-open my $CONFFILE, '<&=', $1 or die "fdopen $1: $!";
+open (my $CONFFILE, '<&=', $1+0) or die "fdopen $1: $!";
(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: $!";
#############################################################################