Maximilian Bosch 6133693097 readIntoSocket: fix with store URIs containing an &
The third argument to `open()` in `-|` mode is passed to a shell if it's
a string. In my case the store URI contains
`?secret-key=${signingKey.directory}/secret&compression=zstd`

For the `nix store cat` case this means that

* until `&` the process will be started in the background. This fails
  immediately because no path to cat is specified.
* `compression=zstd` is a variable assignment
* the `$path` argument to `store cat` is attempted to be executed as
  another command

Passing just the list solves the problem.

(cherry picked from commit 3ee51dbe589458cc54ff753317bbc6db530bddc0)
2025-04-07 11:59:49 -04:00
..
2025-04-07 11:36:59 -04:00
2025-04-07 11:36:59 -04:00
2025-04-07 11:36:59 -04:00
2025-04-07 11:54:47 -04:00
2024-11-24 15:58:26 -05:00
2024-11-24 15:58:26 -05:00