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) {
230
230
return result;
231
231
}
232
232
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
-
243
233
ForkLaunchInfo::ForkLaunchInfo (const ProcessLaunchInfo &info)
244
234
: separate_process_group(
245
235
info.GetFlags().Test(eLaunchFlagLaunchInSeparateProcessGroup)),
246
236
debug(info.GetFlags().Test(eLaunchFlagDebug)),
247
237
disable_aslr(info.GetFlags().Test(eLaunchFlagDisableASLR)),
248
238
wd(info.GetWorkingDirectory().GetPath()),
249
239
argv(info.GetArguments().GetConstArgumentVector()),
250
- envp(FixupEnvironment(info.GetEnvironment())),
251
- actions(MakeForkActions(info)) {}
240
+ envp(info.GetEnvironment().getEnvp()), actions(MakeForkActions(info)) {}
252
241
253
242
HostProcess
254
243
ProcessLauncherPosixFork::LaunchProcess (const ProcessLaunchInfo &launch_info,
You can’t perform that action at this time.
0 commit comments