Use _PATH_BSHELL

Possibly overlooked in f691a55923850a4d315450925fc98733d07b69c9?
This commit is contained in:
Jason 2020-03-01 04:53:35 +09:00 committed by GitHub
parent 47be36410c
commit a516bdbb92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -353,7 +353,7 @@ int main(int argc, char *argv[]) {
unlink(argv[0]);
cmd = sstrdup(argv[0]);
*(cmd + argv0_len - strlen(".nagbar_cmd")) = '\0';
execl("/bin/sh", "/bin/sh", cmd, NULL);
execl(_PATH_BSHELL, _PATH_BSHELL, cmd, NULL);
err(EXIT_FAILURE, "execv(/bin/sh, /bin/sh, %s)", cmd);
}