launch_daemon: Add env vars from sourced files to correct list.

The environment variables were always added to the static environment
list instead of the one supplied as argument. This worked for targets,
as there the scripts are evaluated before the static environment is
used. For services and jobs this isn't the case, causing sourced
environment variables to be missing.
This commit is contained in:
Michael Lotz 2015-08-22 17:17:16 +02:00
parent 44884f88fa
commit f6b2da0a71

View File

@ -172,7 +172,7 @@ BaseJob::GetSourceFilesEnvironment(BStringList& environment)
{
int32 count = fSourceFiles.CountStrings();
for (int32 index = 0; index < count; index++) {
_GetSourceFileEnvironment(fSourceFiles.StringAt(index), fEnvironment);
_GetSourceFileEnvironment(fSourceFiles.StringAt(index), environment);
}
}