]> err.no Git - systemd/commitdiff
manager: don't even think of enumerating sysv services in user instances
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Jul 2011 21:53:44 +0000 (23:53 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Jul 2011 21:53:44 +0000 (23:53 +0200)
src/service.c

index 4ee7900e0833f408d49fa53436382b1e0c8efb12..165655eb124c8bc200d69f0e642eced721970932 100644 (file)
@@ -2977,6 +2977,9 @@ static int service_enumerate(Manager *m) {
 
         assert(m);
 
+        if (m->running_as != MANAGER_SYSTEM)
+                return 0;
+
         zero(runlevel_services);
 
         STRV_FOREACH(p, m->lookup_paths.sysvrcnd_path)