summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_registry.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_registry.cc')
-rw-r--r--winsup/cygwin/fhandler_registry.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_registry.cc b/winsup/cygwin/fhandler_registry.cc
index 50233a886..5f6246439 100644
--- a/winsup/cygwin/fhandler_registry.cc
+++ b/winsup/cygwin/fhandler_registry.cc
@@ -537,6 +537,14 @@ fhandler_registry::fstat (struct __stat64 *buf)
return 0;
}
+DIR *
+fhandler_registry::opendir (int fd)
+{
+ /* Skip fhandler_proc::opendir, which allocates dir->_d_handle for its
+ own devilish purposes... */
+ return fhandler_virtual::opendir (fd);
+}
+
int
fhandler_registry::readdir (DIR *dir, dirent *de)
{