mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
command: pass right arguments to execvp
The first argument is the command (exec) and the next is the actual command we executed.
This commit is contained in:
parent
02be602f97
commit
f306cbde0b
1 changed files with 1 additions and 1 deletions
|
|
@ -333,7 +333,7 @@ execute_command_exec(struct pw_command *command, struct pw_context *context, cha
|
|||
|
||||
if (pid == 0) {
|
||||
pw_log_info("exec %s", command->args[1]);
|
||||
res = execvp(command->args[1], command->args);
|
||||
res = execvp(command->args[1], &command->args[1]);
|
||||
if (res == -1) {
|
||||
res = -errno;
|
||||
*err = spa_aprintf("'%s': %m", command->args[1]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue