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