sanebox: fix pasta argv passing
This commit is contained in:
@@ -776,7 +776,11 @@ bwrapGetCli() {
|
||||
"${cliArgs[@]}"
|
||||
)
|
||||
if [ -n "$bwrapUsePasta" ]; then
|
||||
# not critical, but it's less confusing if we have pasta execute bwrap *as* "bwrap"
|
||||
local _realArgv="$argv0"
|
||||
argv0=bwrap
|
||||
pastaonlyGetCli
|
||||
argv0="$_realArgv"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -994,7 +998,8 @@ pastaonlyIngestCapability() {
|
||||
pastaonlyGetCli() {
|
||||
cliArgs=(
|
||||
"/bin/sh" "-c"
|
||||
"$pastaNetSetup exec"' "$argv0" "$@"'
|
||||
"$pastaNetSetup exec"' "$@"'
|
||||
"$argv0" # first argument after `-c "..."` is interpreted by bash as the argv
|
||||
"${cliArgs[@]}"
|
||||
)
|
||||
locate _pasta "pasta" "$PASTA_FALLBACK"
|
||||
|
Reference in New Issue
Block a user