* dir.cc (opendir): Don't attempt to call sub-opendir if ENOENT.
This commit is contained in:
parent
dc63cea5ed
commit
7acba9716b
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue