From 8d57d700a53a4710cc1c65619354155f02638426 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 7 Jan 2021 13:28:54 -0500 Subject: Use execl rather than execlp for shell SHELL is an absolute path. --- command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'command.c') diff --git a/command.c b/command.c index c71bebc..f6db311 100644 --- a/command.c +++ b/command.c @@ -429,7 +429,7 @@ static void commandExec(uint id, char *params) { dup2(utilPipe[1], STDERR_FILENO); const char *shell = getenv("SHELL") ?: "/bin/sh"; - execlp(shell, shell, "-c", params, NULL); + execl(shell, shell, "-c", params, NULL); warn("%s", shell); _exit(EX_UNAVAILABLE); } -- cgit 1.4.1