about summary refs log tree commit diff
path: root/io/lstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/lstat.c')
-rw-r--r--io/lstat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/io/lstat.c b/io/lstat.c
index bdd60bedb6..abb4a14831 100644
--- a/io/lstat.c
+++ b/io/lstat.c
@@ -17,11 +17,10 @@
 
 #include <sys/stat.h>
 
-#undef __lstat
 int
 __lstat (const char *file, struct stat *buf)
 {
-  return __lxstat (_STAT_VER, file, buf);
+  return __fstatat (AT_FDCWD, file, buf, AT_SYMLINK_NOFOLLOW);
 }
 
 weak_alias (__lstat, lstat)