OSDN Git Service

* fhandler_registry.cc (fhandler_registry::open): Mark /proc/registry
authorcorinna <corinna>
Wed, 2 Dec 2009 01:31:02 +0000 (01:31 +0000)
committercorinna <corinna>
Wed, 2 Dec 2009 01:31:02 +0000 (01:31 +0000)
directory and siblings as nohandle fhandler.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_registry.cc

index effa838..4be550c 100644 (file)
@@ -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
index 904184e..bb0ea04 100644 (file)
@@ -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;
        }
     }