diff --git a/Userland/Libraries/LibCore/System.cpp b/Userland/Libraries/LibCore/System.cpp index 29bb1333ad..941c21987e 100644 --- a/Userland/Libraries/LibCore/System.cpp +++ b/Userland/Libraries/LibCore/System.cpp @@ -503,7 +503,7 @@ ErrorOr lstat(StringView path) HANDLE_SYSCALL_RETURN_VALUE("lstat", rc, st); #else DeprecatedString path_string = path; - if (::stat(path_string.characters(), &st) < 0) + if (::lstat(path_string.characters(), &st) < 0) return Error::from_syscall("lstat"sv, -errno); return st; #endif