]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: execute environment_generators with manager's environment
authorDimitri John Ledkov <xnox@ubuntu.com>
Wed, 12 Sep 2018 18:51:23 +0000 (19:51 +0100)
committerDimitri John Ledkov <xnox@ubuntu.com>
Mon, 24 Sep 2018 12:40:10 +0000 (13:40 +0100)
src/core/manager.c

index f86b924d02412c2744928644fb41f477d8e88c23..f3c04856305c38be3cdfe7c71407c0012ae565e2 100644 (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) {