[PATCH] ntdll: Use lstat instead of fstatat.

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Mon Mar 23 23:07:53 CDT 2020


This stops a compile on the macos.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
 dlls/ntdll/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/ntdll/file.c b/dlls/ntdll/file.c
index 1a5f86d7c2..fd2f17dc72 100644
--- a/dlls/ntdll/file.c
+++ b/dlls/ntdll/file.c
@@ -139,7 +139,7 @@ static inline ULONG get_file_attributes( const struct stat *st )
 static BOOL fd_is_mount_point( int fd, const struct stat *st )
 {
     struct stat parent;
-    return S_ISDIR( st->st_mode ) && !fstatat( fd, "..", &parent, 0 )
+    return S_ISDIR( st->st_mode ) && !lstat( "..", &parent)
             && (parent.st_dev != st->st_dev || parent.st_ino == st->st_ino);
 }
 
-- 
2.25.1




More information about the wine-devel mailing list