diff options
Diffstat (limited to 'newlib/libc/sys/linux/pathconf.c')
-rw-r--r-- | newlib/libc/sys/linux/pathconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/sys/linux/pathconf.c b/newlib/libc/sys/linux/pathconf.c index bbdb6180f..796945971 100644 --- a/newlib/libc/sys/linux/pathconf.c +++ b/newlib/libc/sys/linux/pathconf.c @@ -212,7 +212,7 @@ posix_pathconf (const char *path, int name) /* AIO is only allowed on regular files and block devices. */ struct stat64 st; - if (__xstat64 (_STAT_VER, path, &st) < 0 + if (stat64 (path, &st) < 0 || (! S_ISREG (st.st_mode) && ! S_ISBLK (st.st_mode))) return -1; else |