1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:27:36 +00:00

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

This commit is contained in:
Andrew Kaster 2021-01-10 12:16:26 -07:00 committed by Andreas Kling
parent b24ce0b5ee
commit d8aed14dba

View file

@ -110,8 +110,9 @@ static void prepare_devfs()
} }
// FIXME: Find a better way to chown without hardcoding the gid! // 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); rc = chown("/dev/fb0", 0, 3);
if (rc < 0) { if (rc < 0 && errno != ENOENT) {
ASSERT_NOT_REACHED(); ASSERT_NOT_REACHED();
} }