From ada7dd7d714f842345d1ddbf90b1df5abe592dbb Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 8 Feb 2007 16:34:40 +0000 Subject: g/c __DTF_READALL. It was a flag to the internal __opendir2() but is never set now that the unionfs support has been removed from readdir(). OK pedro@ --- lib/libc/gen/readdir.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/libc/gen/readdir.c b/lib/libc/gen/readdir.c index 180ca35fe21..b028c822396 100644 --- a/lib/libc/gen/readdir.c +++ b/lib/libc/gen/readdir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: readdir.c,v 1.10 2005/08/08 08:05:34 espie Exp $ */ +/* $OpenBSD: readdir.c,v 1.11 2007/02/08 16:34:39 millert Exp $ */ /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. @@ -44,11 +44,9 @@ readdir(DIR *dirp) for (;;) { if (dirp->dd_loc >= dirp->dd_size) { - if (dirp->dd_flags & __DTF_READALL) - return (NULL); dirp->dd_loc = 0; } - if (dirp->dd_loc == 0 && !(dirp->dd_flags & __DTF_READALL)) { + if (dirp->dd_loc == 0) { dirp->dd_size = getdirentries(dirp->dd_fd, dirp->dd_buf, dirp->dd_len, &dirp->dd_seek); if (dirp->dd_size <= 0) -- cgit v1.2.3