]> git.saurik.com Git - apple/libc.git/blobdiff - gen/FreeBSD/telldir.c
Libc-1439.100.3.tar.gz
[apple/libc.git] / gen / FreeBSD / telldir.c
index c447a37b5ef7a6d04921863db6df661ec084f9c3..8351dc17908720c598ac2e920a83749a04252b31 100644 (file)
@@ -132,7 +132,7 @@ _seekdir(DIR *dirp, long loc)
        dirp->dd_seek = lp->loc_seek;
 #endif /* __DARWIN_64_BIT_INO_T */
        dirp->dd_loc = 0;
-       dirp->dd_flags &= ~__DTF_SKIPREAD; /* current contents are invalid */
+       dirp->dd_flags &= ~(__DTF_SKIPREAD | __DTF_ATEND); /* current contents are invalid */
        while (dirp->dd_loc < lp->loc_loc) {
                dp = _readdir_unlocked(dirp, 0);
                if (dp == NULL)