diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 908b71cc6..1b45354b9 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2013-10-25 Corinna Vinschen + + * fhandler_disk_file.cc (fhandler_base::fstat_fs): Fix comment. + 2013-10-25 Corinna Vinschen * fhandler_clipboard.cc (fhandler_dev_clipboard::open): Drop gratuitios diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 32f02bd5f..3b6f85b66 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -492,7 +492,7 @@ fhandler_base::fstat_fs (struct stat *buf) if (oret) { /* We now have a valid handle, regardless of the "nohandle" state. - Since fhandler_base::open only calls CloseHandle if !nohandle, + Since fhandler_base::close only calls CloseHandle if !nohandle, we have to set it to false before calling close and restore the state afterwards. */ res = pc.fs_is_nfs () ? fstat_by_nfs_ea (buf) : fstat_by_handle (buf);