From 7cccdb3bcf6f67161da0a0b6d74a6d41d6f0ad56 Mon Sep 17 00:00:00 2001 From: R-Goc Date: Sat, 10 May 2025 15:17:58 +0200 Subject: [PATCH] AK: Fix error is_errno Previously the check for is_errno did not check if the error kind was syscall, which also set errno so that behavior was incorrect. --- AK/Error.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/Error.h b/AK/Error.h index 4b571e2474f..6d445203548 100644 --- a/AK/Error.h +++ b/AK/Error.h @@ -89,7 +89,7 @@ public: int code() const { return m_code; } bool is_errno() const { - return m_kind == Kind::Errno; + return m_kind == Kind::Errno || m_kind == Kind::Syscall; } bool is_syscall() const {