Bläddra i källkod

SystemServer: Allow /dev/fb0 to not exist, for text mode support.

Andrew Kaster 4 år sedan
förälder
incheckning
d8aed14dba
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      Services/SystemServer/main.cpp

+ 2 - 1
Services/SystemServer/main.cpp

@@ -110,8 +110,9 @@ static void prepare_devfs()
     }
 
     // FIXME: Find a better way to chown without hardcoding the gid!
+    // This will fail with ENOENT in text mode.
     rc = chown("/dev/fb0", 0, 3);
-    if (rc < 0) {
+    if (rc < 0 && errno != ENOENT) {
         ASSERT_NOT_REACHED();
     }