Use execl rather than execlp for shell

SHELL is an absolute path.
weechat-hashes
C. McEnroe 2021-01-07 13:28:54 -05:00
parent 9ea029c580
commit 8d57d700a5
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}