Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-12-01 19:31:04 +0300
committerCorinna Vinschen <corinna@vinschen.de>2009-12-01 19:31:04 +0300
commitb4a3a3e367d36abf78ad1d6c5954714d64f21ee3 (patch)
tree02fe4e03841c081e65062711210bc73b2e1453f9 /winsup/cygwin/fhandler_registry.cc
parentcfdd76f1436fe4d70c228dd65a7cb659056205b3 (diff)
* fhandler_registry.cc (fhandler_registry::open): Mark /proc/registry
directory and siblings as nohandle fhandler.
Diffstat (limited to 'winsup/cygwin/fhandler_registry.cc')
-rw-r--r--winsup/cygwin/fhandler_registry.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_registry.cc b/winsup/cygwin/fhandler_registry.cc
index 904184e63..bb0ea048c 100644
--- a/winsup/cygwin/fhandler_registry.cc
+++ b/winsup/cygwin/fhandler_registry.cc
@@ -664,6 +664,8 @@ fhandler_registry::open (int flags, mode_t mode)
else
{
flags |= O_DIROPEN;
+ /* Marking as nohandle allows to call dup. */
+ nohandle (true);
goto success;
}
}