Skip to content

Commit

Permalink
fix: crash when using jq port program with spaces in the path
Browse files Browse the repository at this point in the history
This fix makes sure that spawning the jq port program does not
cause any crash when the path to the port program contains spaces.
  • Loading branch information
kjellwinblad committed Jul 8, 2022
1 parent c9efe35 commit 024719f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jq_port.erl
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ port_program_path() ->
Path.

start_port_program() ->
Port = erlang:open_port({spawn, port_program_path()}, [{packet, 4}, binary]),
Port = erlang:open_port({spawn_executable, port_program_path()}, [{packet, 4}, binary]),
true = is_port_alive(Port),
Port.

Expand Down

0 comments on commit 024719f

Please sign in to comment.