about summary refs log tree commit diff
path: root/io/openat.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/openat.c')
-rw-r--r--io/openat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io/openat.c b/io/openat.c
index 2f5a9f04de..d810ace979 100644
--- a/io/openat.c
+++ b/io/openat.c
@@ -42,7 +42,7 @@ __openat (int fd, const char *file, int oflag, ...)
     {
       /* Check FD is associated with a directory.  */
       struct stat64 st;
-      if (__fxstat64 (_STAT_VER, fd, &st) != 0)
+      if (__fstat64 (fd, &st) != 0)
 	return -1;
 
       if (!S_ISDIR (st.st_mode))