From 1593e3107dbbdc24dee23eaeae043816923e12cd Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Thu, 3 Apr 2025 07:12:11 +0000 Subject: [PATCH] fix(kernel/syscalls): convert error codes in linux_getdents64 to Linux Signed-off-by: EnderIce2 --- Kernel/subsystem/linux/syscall.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/subsystem/linux/syscall.cpp b/Kernel/subsystem/linux/syscall.cpp index b2b2c4dc..5fb9fc65 100644 --- a/Kernel/subsystem/linux/syscall.cpp +++ b/Kernel/subsystem/linux/syscall.cpp @@ -3141,7 +3141,7 @@ __no_sanitize("undefined") static ssize_t linux_getdents64(SysFrm *, } } #endif - return ret; + return ConvertErrnoToLinux(ret); } static int linux_clock_gettime(SysFrm *, clockid_t clockid, struct timespec *tp)