diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-12-01 16:31:04 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-12-01 16:31:04 +0000 |
commit | b4a3a3e367d36abf78ad1d6c5954714d64f21ee3 (patch) | |
tree | 02fe4e03841c081e65062711210bc73b2e1453f9 /winsup | |
parent | cfdd76f1436fe4d70c228dd65a7cb659056205b3 (diff) | |
download | newlib-b4a3a3e367d36abf78ad1d6c5954714d64f21ee3.zip newlib-b4a3a3e367d36abf78ad1d6c5954714d64f21ee3.tar.gz newlib-b4a3a3e367d36abf78ad1d6c5954714d64f21ee3.tar.bz2 |
* fhandler_registry.cc (fhandler_registry::open): Mark /proc/registry
directory and siblings as nohandle fhandler.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_registry.cc | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index effa838..4be550c 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2009-12-01 Corinna Vinschen <corinna@vinschen.de> + + * fhandler_registry.cc (fhandler_registry::open): Mark /proc/registry + directory and siblings as nohandle fhandler. + 2009-11-30 Christopher Faylor <me+cygwin@cgf.cx> * speclib: Use last dll found since that's the real name of the cygwin diff --git a/winsup/cygwin/fhandler_registry.cc b/winsup/cygwin/fhandler_registry.cc index 904184e..bb0ea04 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; } } |