Переглянути джерело

LibCore: Fix invalid errno

Noone seems to check 'errno' when using LibCore, but let's make sure it's correct anyway.
Ben Wiederhake 4 роки тому
батько
коміт
6f607742dd
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      Userland/Libraries/LibCore/File.cpp

+ 1 - 1
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 {};
 }