diff options
Diffstat (limited to 'sysdeps/mach/hurd/stat.c')
-rw-r--r-- | sysdeps/mach/hurd/stat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/stat.c b/sysdeps/mach/hurd/stat.c index 224b11a79c..ffcdf226f0 100644 --- a/sysdeps/mach/hurd/stat.c +++ b/sysdeps/mach/hurd/stat.c @@ -16,8 +16,11 @@ <https://www.gnu.org/licenses/>. */ #include <errno.h> +#include <fcntl.h> #include <sys/stat.h> +#include <fstatat_common.h> + #include "statconv.c" /* Get file information about FILE in BUF. */ @@ -25,6 +28,6 @@ int __stat (const char *file, struct stat *buf) { struct stat64 buf64; - return __stat64 (file, &buf64) ?: stat64_conv (buf, &buf64); + return __fstatat64_common (AT_FDCWD, file, &buf64, 0, 0) ?: stat64_conv (buf, &buf64); } weak_alias (__stat, stat) |