summary refs log tree commit diff
path: root/command.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-01-07 13:28:54 -0500
committerJune McEnroe <june@causal.agency>2021-01-07 13:28:54 -0500
commit8d57d700a53a4710cc1c65619354155f02638426 (patch)
tree44c905fedfad77178fe14e1a0a481beb099c13ef /command.c
parentSandbox with pledge(2) on OpenBSD (diff)
downloadcatgirl-8d57d700a53a4710cc1c65619354155f02638426.tar.gz
catgirl-8d57d700a53a4710cc1c65619354155f02638426.zip
Use execl rather than execlp for shell
SHELL is an absolute path.
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 1 insertions, 1 deletions
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);
 }