diff options
author | Dongge Liu <donggeliu@google.com> | 2022-06-09 19:25:57 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-09 19:25:57 +1000 |
commit | 605122c506a2cf2bf058533192c84d21734a0a65 (patch) | |
tree | fd6faca0c5aaf108e2d85dd7efb460f19ae9c6c5 /infra | |
parent | ddf48c9a74ed548dd26ca65e4ff0f2e959196118 (diff) |
Allow searching for the binary to execute in `$PATH` (#7832)
Allow searching for the binary to execute in $PATH
Diffstat (limited to 'infra')
-rw-r--r-- | infra/experimental/sanitizers/ExecSan/execSan.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/infra/experimental/sanitizers/ExecSan/execSan.cpp b/infra/experimental/sanitizers/ExecSan/execSan.cpp index 1a6db7f2..b1c6f335 100644 --- a/infra/experimental/sanitizers/ExecSan/execSan.cpp +++ b/infra/experimental/sanitizers/ExecSan/execSan.cpp @@ -135,8 +135,8 @@ pid_t run_child(char **argv) { fatal_log("Fork failed: %s", strerror(errno)); case 0: raise(SIGSTOP); - execv(argv[0], argv); - fatal_log("execv: %s", strerror(errno)); + execvp(argv[0], argv); + fatal_log("execvp: %s", strerror(errno)); } return pid; } |