chiark / gitweb /
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 4ee7900..165655e 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)