diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2019-03-26 09:32:16 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-03-26 09:32:16 +0000 |
commit | b1ddbfdcdcbd583ae36ba31ad65ca4cb62e0733e (patch) | |
tree | 91a782f954ce33d5058aa1106f1c8b593ca17efe /libc/stdio/stdio.cpp | |
parent | 1b6517b60116cbdf3f864c6b8839d1561e77a118 (diff) | |
parent | 886370c2402e6fcf6ac613a8603f99fff66cd20c (diff) |
Merge "Fix internal uses of _PATH_BSHELL."
Diffstat (limited to 'libc/stdio/stdio.cpp')
-rw-r--r-- | libc/stdio/stdio.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/stdio/stdio.cpp b/libc/stdio/stdio.cpp index 8144e5f1d..dc232002e 100644 --- a/libc/stdio/stdio.cpp +++ b/libc/stdio/stdio.cpp @@ -52,6 +52,7 @@ #include "local.h" #include "glue.h" +#include "private/__bionic_get_shell_path.h" #include "private/bionic_fortify.h" #include "private/ErrnoRestorer.h" #include "private/thread_private.h" @@ -1218,7 +1219,7 @@ FILE* popen(const char* cmd, const char* mode) { if (dup2(fds[child], desired_child_fd) == -1) _exit(127); close(fds[child]); if (bidirectional) dup2(STDOUT_FILENO, STDIN_FILENO); - execl(_PATH_BSHELL, "sh", "-c", cmd, nullptr); + execl(__bionic_get_shell_path(), "sh", "-c", cmd, nullptr); _exit(127); } |