From 46943206dcc5f090968532259ed20092217885ba Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 25 Oct 2013 15:33:51 +0000 Subject: [PATCH] * fhandler_disk_file.cc (fhandler_base::fstat_fs): Fix comment. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/fhandler_disk_file.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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);