aboutsummaryrefslogtreecommitdiffstats
path: root/lacme-accountd
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2017-07-08 21:04:17 +0200
committerGuilhem Moulin <guilhem@fripost.org>2017-07-08 21:04:17 +0200
commit9c113558ea6dc75850d67d93e7567abb5fbd5dc6 (patch)
treed91ebf14c189fa24b7565e90197db2df6a145236 /lacme-accountd
parentc1b8ab65eb0e7f1cf94f45c9bd56ce05f3a66fb2 (diff)
parent8cdd29841d0dbb89e866aad36173bb26182d0c97 (diff)
Merge branch 'master' into debian
Diffstat (limited to 'lacme-accountd')
-rwxr-xr-xlacme-accountd3
1 files changed, 2 insertions, 1 deletions
diff --git a/lacme-accountd b/lacme-accountd
index 547af59..80ede29 100755
--- a/lacme-accountd
+++ b/lacme-accountd
@@ -19,6 +19,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#----------------------------------------------------------------------
+use v5.14.2;
use strict;
use warnings;
@@ -140,7 +141,7 @@ $JWK = JSON::->new->encode($JWK);
if (defined $OPTS{'conn-fd'}) {
die "Invalid file descriptor" unless $OPTS{'conn-fd'} =~ /\A(\d+)\z/;
# untaint and fdopen(3) our end of the socket pair
- open $S, '+<&=', $1 or die "fdopen $1: $!";
+ open ($S, '+<&=', $1+0) or die "fdopen $1: $!";
} else {
my $sockname = $OPTS{socket} // (defined $ENV{XDG_RUNTIME_DIR} ? "$ENV{XDG_RUNTIME_DIR}/S.lacme" : undef);
die "Missing socket option\n" unless defined $sockname;