mirror of
https://github.com/swaywm/sway.git
synced 2026-04-20 06:47:03 -04:00
Use execlp("sh") instead of execl("/bin/sh")
This stops assuming the POSIX shell command is located in /bin.
This commit is contained in:
parent
e3e99d961d
commit
7beeb9e61b
3 changed files with 7 additions and 7 deletions
|
|
@ -65,7 +65,7 @@ struct cmd_results *cmd_exec_process(int argc, char **argv) {
|
|||
close(fd[0]);
|
||||
if ((child = fork()) == 0) {
|
||||
close(fd[1]);
|
||||
execl("/bin/sh", "/bin/sh", "-c", cmd, (void *)NULL);
|
||||
execlp("sh", "sh", "-c", cmd, (void *)NULL);
|
||||
_exit(0);
|
||||
}
|
||||
ssize_t s = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue