From 6f607742dd50184c2fe52008b820ffeea810effd Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sat, 16 Jan 2021 10:33:29 +0100 Subject: [PATCH] LibCore: Fix invalid errno Noone seems to check 'errno' when using LibCore, but let's make sure it's correct anyway. --- Userland/Libraries/LibCore/File.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibCore/File.cpp b/Userland/Libraries/LibCore/File.cpp index 07192a9b18..991b15c834 100644 --- a/Userland/Libraries/LibCore/File.cpp +++ b/Userland/Libraries/LibCore/File.cpp @@ -209,7 +209,7 @@ String File::read_link(const StringView& link_path) return { large_buffer_ptr, new_size }; // Otherwise, here's not much we can do, unless we want to loop endlessly // in this case. Let's leave it up to the caller whether to loop. - errno = -EAGAIN; + errno = EAGAIN; return {}; }