aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/fhandler.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index fc15d96..1515d80 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -967,9 +967,13 @@ rootdir (char *full_path)
}
int __stdcall
-fhandler_base::fstat (struct __stat64 *buf, path_conv *)
+fhandler_base::fstat (struct __stat64 *buf, path_conv *pc)
{
debug_printf ("here");
+
+ if (is_fs_device ())
+ return fstat_fs (buf, pc);
+
switch (get_device ())
{
case FH_PIPE: