From 074dfe257124970534ca357af49ec1ad7dedd52c Mon Sep 17 00:00:00 2001 From: Stephen Miller <56742918+StevenMiller123@users.noreply.github.com> Date: Tue, 5 Aug 2025 11:58:23 -0500 Subject: [PATCH] Update file_system.cpp (#3388) --- src/core/libraries/kernel/file_system.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/libraries/kernel/file_system.cpp b/src/core/libraries/kernel/file_system.cpp index a2971e724..619a15ab6 100644 --- a/src/core/libraries/kernel/file_system.cpp +++ b/src/core/libraries/kernel/file_system.cpp @@ -253,8 +253,8 @@ s32 PS4_SYSV_ABI close(s32 fd) { return -1; } if (fd < 3) { - // This is technically possible, but it's usually caused by some stubbed function instead. - LOG_WARNING(Kernel_Fs, "called on an std handle, fd = {}", fd); + *__Error() = POSIX_EPERM; + return -1; } if (file->type == Core::FileSys::FileType::Regular) { file->f.Close();