summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_disk_file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index 12524196a..cbbd0fd7b 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -437,7 +437,7 @@ fhandler_base::fstat_fs (struct __stat64 *buf)
res = fstat_by_handle (buf);
bool no_handle = nohandle ();
nohandle (false);
- close ();
+ close_fs ();
nohandle (no_handle);
set_io_handle (NULL);
}
@@ -1257,7 +1257,7 @@ fhandler_base::open_fs (int flags, mode_t mode)
if (pc.has_buggy_open () && !pc.exists ())
{
debug_printf ("Buggy open detected.");
- close ();
+ close_fs ();
set_errno (ENOENT);
return 0;
}