aboutsummaryrefslogtreecommitdiff
path: root/io/mkdirat.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/mkdirat.c')
-rw-r--r--io/mkdirat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io/mkdirat.c b/io/mkdirat.c
index cfe01b5748..094f0d7e0e 100644
--- a/io/mkdirat.c
+++ b/io/mkdirat.c
@@ -36,7 +36,7 @@ mkdirat (int fd, const char *path, mode_t mode)
{
/* 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))