Remove call to readdir() that was missed durning the libc namespace
authorDavid Rhodus <drhodus@dragonflybsd.org>
Tue, 8 Feb 2005 04:07:57 +0000 (04:07 +0000)
committerDavid Rhodus <drhodus@dragonflybsd.org>
Tue, 8 Feb 2005 04:07:57 +0000 (04:07 +0000)
cleanup.  We now make use of _readidir_unlocked().

First reported by : Joerg Anslik <joerg@anslik.de>
Bug hunter and fix provided by : YONETANI Tomokazu <qhwt+dfly@les.ath.cx>

lib/libc/gen/readdir.c

index 1b52565..da3f01c 100644 (file)
@@ -31,7 +31,7 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/lib/libc/gen/readdir.c,v 1.5.2.4 2002/02/26 22:53:57 alfred Exp $
- * $DragonFly: src/lib/libc/gen/readdir.c,v 1.3 2005/01/31 22:29:15 dillon Exp $
+ * $DragonFly: src/lib/libc/gen/readdir.c,v 1.4 2005/02/08 04:07:57 drhodus Exp $
  *
  * @(#)readdir.c       8.3 (Berkeley) 9/29/94
  */
@@ -109,7 +109,6 @@ readdir_r(dirp, entry, result)
 
        saved_errno = errno;
        errno = 0;
-       dp = readdir(dirp);
        if (__isthreaded) {
                _pthread_mutex_lock((pthread_mutex_t *)&dirp->dd_lock);
                if ((dp = _readdir_unlocked(dirp)) != NULL)