Merge pull request #230693 from Atemu/fix/fhsenv-escape-runScript-path

buildFHSEnvBubblewrap: escape runScript path
This commit is contained in:
Atemu 2023-05-18 18:02:04 +02:00 committed by GitHub
commit 840f2e0ac5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,7 +111,7 @@ let
init = run: writeShellScript "${name}-init" ''
source /etc/profile
${createLdConfCache}
exec ${run} "$@"
exec ${lib.escapeShellArg run} "$@"
'';
indentLines = str: lib.concatLines (map (s: " " + s) (filter (s: s != "") (lib.splitString "\n" str)));