From f306cbde0badab9f0f4bd47b60a52a87c5353a96 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 16 Jul 2020 11:42:55 +0200 Subject: [PATCH] command: pass right arguments to execvp The first argument is the command (exec) and the next is the actual command we executed. --- src/daemon/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/command.c b/src/daemon/command.c index 9a6232b8f..f875f2733 100644 --- a/src/daemon/command.c +++ b/src/daemon/command.c @@ -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]);