1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-27 14:03:43 +03:00

core: execute environment_generators with manager's environment

This commit is contained in:
Dimitri John Ledkov 2018-09-12 19:51:23 +01:00
parent 78ec1bb436
commit ea368f0bd2

View File

@ -3788,7 +3788,7 @@ static int manager_run_environment_generators(Manager *m) {
if (!generator_path_any(paths))
return 0;
return execute_directories(paths, DEFAULT_TIMEOUT_USEC, gather_environment, args, NULL, NULL);
return execute_directories(paths, DEFAULT_TIMEOUT_USEC, gather_environment, args, NULL, m->environment);
}
static int manager_run_generators(Manager *m) {