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
Notes: sideshowbarker 2024-07-17 18:49:23 +09:00

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"));