diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2006-02-05 21:11:03 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2006-02-05 21:11:03 +0300 |
commit | 0913522dbd42e068bc737e7a32d1a8015a1e7c84 (patch) | |
tree | a58f3486aeaa00b243e01fb13b7662322e631960 /winsup | |
parent | d795c9c9f4356ea135edd53b767feeff9e63b0a7 (diff) |
* fhandler_disk_file.cc (fhandler_disk_file::readdir_9x): Remove
useless code.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 6 | ||||
-rw-r--r-- | 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 <cgf@timesys.com> + Corinna Vinschen <corinna@vinschen.de> + + * fhandler_disk_file.cc (fhandler_disk_file::readdir_9x): Remove + useless code. + 2006-02-05 Corinna Vinschen <corinna@vinschen.de> * 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); |