(fts_safe_changedir): Use __fxstat64 instead of __fstat.
authordrepper <drepper>
Mon, 20 Aug 2001 06:59:41 +0000 (06:59 +0000)
committerdrepper <drepper>
Mon, 20 Aug 2001 06:59:41 +0000 (06:59 +0000)
io/fts.c

index bfe41d3..da33745 100644 (file)
--- a/io/fts.c
+++ b/io/fts.c
@@ -1091,14 +1091,14 @@ fts_safe_changedir(sp, p, fd, path)
        const char *path;
 {
        int ret, oerrno, newfd;
-       struct stat sb;
+       struct stat64 sb;
 
        newfd = fd;
        if (ISSET(FTS_NOCHDIR))
                return (0);
        if (fd < 0 && (newfd = __open(path, O_RDONLY, 0)) < 0)
                return (-1);
-       if (__fstat(newfd, &sb)) {
+       if (__fxstat64(_STAT_VER, newfd, &sb)) {
                ret = -1;
                goto bail;
        }