From 8046f157bfc7904d515d8a6bfae180509b6342c4 Mon Sep 17 00:00:00 2001 From: dzaima Date: Mon, 19 May 2025 23:51:13 +0300 Subject: [PATCH] =?UTF-8?q?fix=20=E2=80=A2file.Type=20and=20=E2=80=A2file.?= =?UTF-8?q?Exists=20on=20links?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/file.c b/src/utils/file.c index d9c0221b..ba3ca0a5 100644 --- a/src/utils/file.c +++ b/src/utils/file.c @@ -438,7 +438,7 @@ bool path_remove(B path) { int path_stat(struct stat* s, B path) { // doesn't consume; get stat of s; errors if path isn't string; returns non-zero on failure OsStr p = toOsStr(path); #if !defined(_WIN32) - int r = stat(p, s); + int r = lstat(p, s); #else int r = wstat(p, s); #endif