From 6c0467f56b27bb002e98fe49c100100dd4d04b7a Mon Sep 17 00:00:00 2001 From: Liav A Date: Mon, 14 Feb 2022 14:54:13 +0200 Subject: [PATCH] SystemServer: Remove now unnecessary call to chmod on /dev/audio Don't use chmod now that DevTmpFS honors permission mode when creating new directories. --- Userland/Services/SystemServer/main.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/Userland/Services/SystemServer/main.cpp b/Userland/Services/SystemServer/main.cpp index c66ca9ad36c..85664277d3e 100644 --- a/Userland/Services/SystemServer/main.cpp +++ b/Userland/Services/SystemServer/main.cpp @@ -384,10 +384,7 @@ static ErrorOr prepare_synthetic_filesystems() TRY(Core::System::mount(-1, "/sys", "sys", 0)); TRY(Core::System::mount(-1, "/dev", "dev", 0)); - // FIXME: Find out why on creating the /dev/audio directory we must do chmod it too - // instead of one syscall. TRY(Core::System::mkdir("/dev/audio", 0755)); - TRY(Core::System::chmod("/dev/audio", 0755)); TRY(Core::System::symlink("/proc/self/fd/0", "/dev/stdin")); TRY(Core::System::symlink("/proc/self/fd/1", "/dev/stdout"));