]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
Always pretend to have systemd available
authorRobert Ancell <robert.ancell@canonical.com>
Tue, 30 Jul 2013 16:33:25 +0000 (17:33 +0100)
committerRobert Ancell <robert.ancell@canonical.com>
Tue, 30 Jul 2013 16:33:25 +0000 (17:33 +0100)
tests/src/libsystem.c

index b5f17de7319a4998ff68f91d7253af6e76a9ca55..5cbf203fc86bb360201ea1f6988376a4df9dcaff 100644 (file)
@@ -290,6 +290,10 @@ access (const char *pathname, int mode)
     gchar *new_path = NULL;
     int ret;
 
+    /* Look like systemd is always running */
+    if (strcmp (pathname, "/run/systemd/seats/") == 0)
+        return 1;
+
     _access = (int (*)(const char *pathname, int mode)) dlsym (RTLD_NEXT, "access");
 
     new_path = redirect_path (pathname);