aboutsummaryrefslogtreecommitdiff
path: root/io/stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/stat.c')
-rw-r--r--io/stat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/io/stat.c b/io/stat.c
index 78dbfb3..9c0a8b0 100644
--- a/io/stat.c
+++ b/io/stat.c
@@ -17,11 +17,10 @@
#include <sys/stat.h>
-#undef __stat
int
__stat (const char *file, struct stat *buf)
{
- return __xstat (_STAT_VER, file, buf);
+ return __fstatat (AT_FDCWD, file, buf, 0);
}
weak_alias (__stat, stat)