From d8aed14dba0922e9eb3fa6a9a92968e70811f744 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sun, 10 Jan 2021 12:16:26 -0700 Subject: [PATCH] SystemServer: Allow /dev/fb0 to not exist, for text mode support. --- Services/SystemServer/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Services/SystemServer/main.cpp b/Services/SystemServer/main.cpp index 5233922f2e..e0f11ac4b6 100644 --- a/Services/SystemServer/main.cpp +++ b/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(); }