diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2000-11-14 16:06:52 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2000-11-14 16:06:52 +0000 |
commit | fe8c097112ab4e2cd2c369b484561c0bd4ce4b75 (patch) | |
tree | 69aae5263ea22061e937d60d117a5a4f209bdacf /winsup | |
parent | a4785603b85b80ea0cc5ea0038bbbb3a13513714 (diff) | |
download | newlib-fe8c097112ab4e2cd2c369b484561c0bd4ce4b75.zip newlib-fe8c097112ab4e2cd2c369b484561c0bd4ce4b75.tar.gz newlib-fe8c097112ab4e2cd2c369b484561c0bd4ce4b75.tar.bz2 |
* 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/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/dir.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index ba20476..58e6e67 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 b510e22..ee7d2a9 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 */ |