init-posix: preserve arguments when exec'ing the original_cmd

This commit is contained in:
Uriel Corfa 2026-01-08 09:56:59 +01:00 committed by Sander Declerck
parent 607b4ee87d
commit 11d9e26a2d
No known key found for this signature in database

View file

@ -80,7 +80,7 @@ function wrapSafeChainCommand() {
# If the original command is not available, don't try to wrap it: invoke it # If the original command is not available, don't try to wrap it: invoke it
# transparently, so the shell can report errors as if this wrapper didn't # transparently, so the shell can report errors as if this wrapper didn't
# exist. # exist.
command $@ command "$@"
return $? return $?
fi fi