]> git.saurik.com Git - apple/libc.git/blobdiff - gen/FreeBSD/rewinddir.c
Libc-1353.11.2.tar.gz
[apple/libc.git] / gen / FreeBSD / rewinddir.c
index 97067d3fd6e8020028e2fc08dbb8244f7be716d6..66deadc4d1c7510166f30900ec41270bf05058a5 100644 (file)
@@ -49,7 +49,7 @@ rewinddir(DIR *dirp)
 
        if (__isthreaded)
                _pthread_mutex_lock(&dirp->dd_lock);
-       dirp->dd_flags &= ~__DTF_SKIPREAD; /* current contents are invalid */
+       dirp->dd_flags &= ~(__DTF_SKIPREAD | __DTF_ATEND); /* current contents are invalid */
        if (dirp->dd_flags & __DTF_READALL)
                _filldir(dirp, false);
        else {