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

SystemServer: Remove now unnecessary call to chmod on /dev/audio

Don't use chmod now that DevTmpFS honors permission mode when creating
new directories.
This commit is contained in:
Liav A 2022-02-14 14:54:13 +02:00 committed by Tim Flynn
parent e23dda81de
commit 6c0467f56b

View file

@ -384,10 +384,7 @@ static ErrorOr<void> 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"));