* dir.cc (opendir): Don't attempt to call sub-opendir if ENOENT.

This commit is contained in:
Christopher Faylor 2002-01-04 19:06:01 +00:00
parent dc63cea5ed
commit 7acba9716b
2 changed files with 6 additions and 0 deletions

View 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

View 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);