diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2017-07-01 19:36:46 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2017-07-01 19:36:46 +0200 |
commit | 7a4e51344423ee3309c258087a69dac29bf30b51 (patch) | |
tree | bd9dc6fcab0f299c7ac4b9903107994d495f6d20 /lacme-accountd | |
parent | 7f674213fb08129bd379d2f87e401a42899a60b8 (diff) |
Ensure fdopen is called with an integer.
Diffstat (limited to 'lacme-accountd')
-rwxr-xr-x | lacme-accountd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lacme-accountd b/lacme-accountd index 547af59..f0d7d51 100755 --- a/lacme-accountd +++ b/lacme-accountd @@ -140,7 +140,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; |