File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -230,25 +230,14 @@ MakeForkActions(const ProcessLaunchInfo &info) {
230230 return result;
231231}
232232
233- static Environment::Envp FixupEnvironment (Environment env) {
234- #ifdef __ANDROID__
235- // If there is no PATH variable specified inside the environment then set the
236- // path to /system/bin. It is required because the default path used by
237- // execve() is wrong on android.
238- env.try_emplace (" PATH" , " /system/bin" );
239- #endif
240- return env.getEnvp ();
241- }
242-
243233ForkLaunchInfo::ForkLaunchInfo (const ProcessLaunchInfo &info)
244234 : separate_process_group(
245235 info.GetFlags().Test(eLaunchFlagLaunchInSeparateProcessGroup)),
246236 debug(info.GetFlags().Test(eLaunchFlagDebug)),
247237 disable_aslr(info.GetFlags().Test(eLaunchFlagDisableASLR)),
248238 wd(info.GetWorkingDirectory().GetPath()),
249239 argv(info.GetArguments().GetConstArgumentVector()),
250- envp(FixupEnvironment(info.GetEnvironment())),
251- actions(MakeForkActions(info)) {}
240+ envp(info.GetEnvironment().getEnvp()), actions(MakeForkActions(info)) {}
252241
253242HostProcess
254243ProcessLauncherPosixFork::LaunchProcess (const ProcessLaunchInfo &launch_info,
You can’t perform that action at this time.
0 commit comments