From c9297126db413732577b2247cb67304fa1cd6e74 Mon Sep 17 00:00:00 2001 From: Liav A Date: Sun, 17 Sep 2023 21:04:19 +0300 Subject: [PATCH] SystemServer: Use correct unix device numbers for null, full and random This fixes regression made in 446200d6f3bcf3a828e23902e9dbbb44702135d0 --- Userland/Services/SystemServer/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Userland/Services/SystemServer/main.cpp b/Userland/Services/SystemServer/main.cpp index 465725d3ad..a35c944307 100644 --- a/Userland/Services/SystemServer/main.cpp +++ b/Userland/Services/SystemServer/main.cpp @@ -130,9 +130,9 @@ static ErrorOr prepare_bare_minimum_devtmpfs_directory_structure() TRY(Core::System::create_char_device("/dev/devctl"sv, 0660, 2, 10)); TRY(Core::System::create_char_device("/dev/zero"sv, 0666, 1, 5)); TRY(Core::System::create_char_device("/dev/mem"sv, 0600, 1, 1)); - TRY(Core::System::create_char_device("/dev/null"sv, 0666, 3, 0)); - TRY(Core::System::create_char_device("/dev/full"sv, 0666, 7, 0)); - TRY(Core::System::create_char_device("/dev/random"sv, 0666, 8, 0)); + TRY(Core::System::create_char_device("/dev/null"sv, 0666, 1, 3)); + TRY(Core::System::create_char_device("/dev/full"sv, 0666, 1, 7)); + TRY(Core::System::create_char_device("/dev/random"sv, 0666, 1, 8)); TRY(Core::System::create_char_device("/dev/console"sv, 0666, 5, 1)); TRY(Core::System::create_char_device("/dev/ptmx"sv, 0666, 5, 2)); TRY(Core::System::create_char_device("/dev/tty"sv, 0666, 5, 0));