diff options
author | Andrew Kaster <andrewdkaster@gmail.com> | 2021-01-10 12:16:26 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-10 21:50:08 +0100 |
commit | d8aed14dba0922e9eb3fa6a9a92968e70811f744 (patch) | |
tree | d03194677d7b751e4ce20241545a3d88007489c2 /Services | |
parent | b24ce0b5eed83a4b55ff5d22e08b895e9c30a13c (diff) | |
download | serenity-d8aed14dba0922e9eb3fa6a9a92968e70811f744.zip |
SystemServer: Allow /dev/fb0 to not exist, for text mode support.
Diffstat (limited to 'Services')
-rw-r--r-- | Services/SystemServer/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } |