]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
Update libsystem to make lightdm think VT switching is possible
authorRobert Ancell <robert.ancell@canonical.com>
Wed, 12 Nov 2014 01:13:15 +0000 (14:13 +1300)
committerRobert Ancell <robert.ancell@canonical.com>
Wed, 12 Nov 2014 01:13:15 +0000 (14:13 +1300)
tests/src/libsystem.c

index 88d9a61d60c5fd4626738a78c1717ef75ed7a1c3..a5cbb37fbff705bac6d747aa68818632a40a2bfc 100644 (file)
@@ -338,6 +338,11 @@ access (const char *pathname, int mode)
 
     _access = (int (*)(const char *pathname, int mode)) dlsym (RTLD_NEXT, "access");
 
+    if (strcmp (pathname, "/dev/tty0") == 0)
+        return F_OK;
+    if (strcmp (pathname, "/sys/class/tty/tty0/active") == 0)
+        return F_OK;
+
     new_path = redirect_path (pathname);
     ret = _access (new_path, mode);
     g_free (new_path);