From fe8c097112ab4e2cd2c369b484561c0bd4ce4b75 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 14 Nov 2000 16:06:52 +0000 Subject: [PATCH] * dir.cc (rewinddir): Always set __d_position = 0, so next call to readdir() will restart the directory scan. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/dir.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * 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 * 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 */ -- 2.43.5