diff options
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index a70ef3e5d33..31627e30a31 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,9 @@ 2006-10-23 Corinna Vinschen <corinna@vinschen.de> + * fhandler_disk_file.cc (fhandler_disk_file::rewinddir): Fix comment. + +2006-10-23 Corinna Vinschen <corinna@vinschen.de> + * fhandler_disk_file.cc (fhandler_disk_file::rewinddir): Accomodate buggy RestartScan behaviour of Windows 2000. * wincap.h: Define has_buggy_restart_scan throughout. diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index a14e89cd4d2..d068114e097 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -1875,9 +1875,9 @@ fhandler_disk_file::rewinddir (DIR *dir) if (wincap.has_buggy_restart_scan () && isremote ()) { /* This works around a W2K bug. The RestartScan parameter in calls - to NtQueryDiretoryFile on remote shares is ignored, thus resulting - in not being able to rewind on remote shares. By reopening the - directory, we get a fresh new directory pointers. w*/ + to NtQueryDirectoryFile on remote shares is ignored, thus + resulting in not being able to rewind on remote shares. By + reopening the directory, we get a fresh new directory pointer. */ UNICODE_STRING fname = {0, CYG_MAX_PATH * 2, (WCHAR *) L""}; OBJECT_ATTRIBUTES attr; NTSTATUS status; |