Index: base/process/launch_posix.cc |
diff --git a/base/process/launch_posix.cc b/base/process/launch_posix.cc |
index 5906d1d94ab4e3ca6d10d7dc6db6262670affeb7..e45604362511b4877236c5e856396d6420b1589e 100644 |
--- a/base/process/launch_posix.cc |
+++ b/base/process/launch_posix.cc |
@@ -487,7 +487,10 @@ Process LaunchProcess(const std::vector<std::string>& argv, |
options.pre_exec_delegate->RunAsyncSafe(); |
} |
- execvp(argv_cstr[0], argv_cstr.get()); |
+ const char* executable_path = !options.real_path.empty() ? |
+ options.real_path.value().c_str() : argv_cstr[0]; |
+ |
+ execvp(executable_path, argv_cstr.get()); |
RAW_LOG(ERROR, "LaunchProcess: failed to execvp:"); |
RAW_LOG(ERROR, argv_cstr[0]); |