Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2000-11-14 19:06:52 +0300
committerCorinna Vinschen <corinna@vinschen.de>2000-11-14 19:06:52 +0300
commitfe8c097112ab4e2cd2c369b484561c0bd4ce4b75 (patch)
tree69aae5263ea22061e937d60d117a5a4f209bdacf /winsup
parenta4785603b85b80ea0cc5ea0038bbbb3a13513714 (diff)
* dir.cc (rewinddir): Always set __d_position = 0, so next
call to readdir() will restart the directory scan.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/dir.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index ba2047642..58e6e67c4 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+Tue Nov 14 17:05:00 2000 Eric Fifer <efifer@dircon.co.uk>
+
+ * dir.cc (rewinddir): Always set __d_position = 0, so next
+ call to readdir() will restart the directory scan.
+
Tue Nov 14 00:51:28 2000 Christopher Faylor <cgf@cygnus.com>
* cygheap.h (init_cygheap): New struct holding values that live in the
diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc
index b510e2267..ee7d2a967 100644
--- a/winsup/cygwin/dir.cc
+++ b/winsup/cygwin/dir.cc
@@ -245,8 +245,8 @@ rewinddir (DIR * dir)
{
(void) FindClose (dir->__d_u.__d_data.__handle);
dir->__d_u.__d_data.__handle = INVALID_HANDLE_VALUE;
- dir->__d_position = 0;
}
+ dir->__d_position = 0;
}
/* closedir: POSIX 5.1.2.1 */