Merge pull request #3961 from ammgws/patch-1

i3-nagbar: Use _PATH_BSHELL
This commit is contained in:
Ingo Bürk 2020-03-01 01:28:57 +01:00 committed by GitHub
commit daa2ea0d05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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