* dir.cc (rewinddir): Always set __d_position = 0, so next

call to readdir() will restart the directory scan.
This commit is contained in:
Corinna Vinschen 2000-11-14 16:06:52 +00:00
parent a4785603b8
commit fe8c097112
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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 */