aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra
diff options
context:
space:
mode:
authorGravatar Dongge Liu <donggeliu@google.com>2022-06-09 19:25:57 +1000
committerGravatar GitHub <noreply@github.com>2022-06-09 19:25:57 +1000
commit605122c506a2cf2bf058533192c84d21734a0a65 (patch)
treefd6faca0c5aaf108e2d85dd7efb460f19ae9c6c5 /infra
parentddf48c9a74ed548dd26ca65e4ff0f2e959196118 (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.cpp4
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;
}