summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_process.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_process.cc')
-rw-r--r--winsup/cygwin/fhandler_process.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc
index 1abb99dfd..6ba9fd4cc 100644
--- a/winsup/cygwin/fhandler_process.cc
+++ b/winsup/cygwin/fhandler_process.cc
@@ -198,15 +198,11 @@ fhandler_process::fstat (struct __stat64 *buf)
}
DIR *
-fhandler_process::opendir ()
+fhandler_process::opendir (int fd)
{
- DIR *dir = fhandler_virtual::opendir ();
- if (dir)
- {
- if (fileid == PROCESS_FD)
- fill_filebuf ();
- dir->__flags = 0;
- }
+ DIR *dir = fhandler_virtual::opendir (fd);
+ if (dir && fileid == PROCESS_FD)
+ fill_filebuf ();
return dir;
}