1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:47:45 +00:00

LibCore: Fix invalid errno

Noone seems to check 'errno' when using LibCore, but let's make sure it's correct anyway.
This commit is contained in:
Ben Wiederhake 2021-01-16 10:33:29 +01:00 committed by Andreas Kling
parent 72ac97ef6a
commit 6f607742dd

View file

@ -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 {};
}