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
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2006-10-23 20:41:10 +0400
committerCorinna Vinschen <corinna@vinschen.de>2006-10-23 20:41:10 +0400
commit74cab745fc3a79617a2eda04b032560dcab6cb70 (patch)
tree977f8d7f83f34d7e52010356539a08a05f312664
parent7a229db6544c207fda7a3cf535da96dda6954f8e (diff)
* fhandler_disk_file.cc (fhandler_disk_file::rewinddir): Fix comment.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc6
2 files changed, 7 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index d76219164..622c67db6 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 ed67bc78e..da358bd1d 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -1980,9 +1980,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;