diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 3e6335bd2..fadd8a4e2 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2012-10-31 Corinna Vinschen + + * fhandler_disk_file.cc (fhandler_disk_file::rewinddir): Fix using + wrong value in condition. + 2012-10-30 Corinna Vinschen * include/sys/cygwin.h: Add missing defines for CW_ALLOC_DRIVE_MAP, diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 8ed8a8155..92bb589cb 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -2358,7 +2358,7 @@ fhandler_disk_file::rewinddir (DIR *dir) FILE_SYNCHRONOUS_IO_NONALERT | FILE_OPEN_FOR_BACKUP_INTENT | FILE_DIRECTORY_FILE); - if (!NT_SUCCESS (stat)) + if (!NT_SUCCESS (status)) debug_printf ("Unable to reopen dir %s, NT error: %p", get_name (), status); else