OSDN Git Service

* dir.cc (opendir): Don't attempt to call sub-opendir if ENOENT.
authorcgf <cgf>
Fri, 4 Jan 2002 19:06:01 +0000 (19:06 +0000)
committercgf <cgf>
Fri, 4 Jan 2002 19:06:01 +0000 (19:06 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/dir.cc

index d169b10..6bce225 100644 (file)
@@ -1,3 +1,7 @@
+2002-01-04  Christopher Faylor  <cgf@redhat.com>
+
+       * dir.cc (opendir): Don't attempt to call sub-opendir if ENOENT.
+
 2001-01-04  Corinna Vinschen  <corinna@vinschen.de>
 
        * net.cc: Replace usage of AF_UNIX by Posix compliant AF_LOCAL
index 5713c57..44db5d7 100644 (file)
@@ -88,6 +88,8 @@ opendir (const char *name)
                                                PC_SYM_FOLLOW | PC_FULL, NULL);
   if (!fh)
     res = NULL;
+  else if (!pc.exists ())
+    set_errno (ENOENT);
   else
     {
       res = fh->opendir (pc);