From 0913522dbd42e068bc737e7a32d1a8015a1e7c84 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sun, 5 Feb 2006 18:11:03 +0000 Subject: [PATCH] * fhandler_disk_file.cc (fhandler_disk_file::readdir_9x): Remove useless code. --- winsup/cygwin/ChangeLog | 6 ++++++ winsup/cygwin/fhandler_disk_file.cc | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 6bd2873e6..bef06e22b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2006-02-05 Christopher Faylor + Corinna Vinschen + + * fhandler_disk_file.cc (fhandler_disk_file::readdir_9x): Remove + useless code. + 2006-02-05 Corinna Vinschen * fhandler_disk_file.cc (fhandler_disk_file::rewinddir): Remove label diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index d75b366fb..048574c1e 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -1715,11 +1715,6 @@ fhandler_disk_file::readdir_9x (DIR *dir, dirent *de) goto out; } } - else if (dir->__handle == INVALID_HANDLE_VALUE) - { - res = EBADF; /* FIXME: Isn't this just a case of repeated reading beyond EOF? */ - goto out; - } else ret = FindNextFileA (dir->__handle, &buf);