OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains4x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c966636
)
* dir.cc (opendir): Don't attempt to call sub-opendir if ENOENT.
author
cgf
<cgf>
Fri, 4 Jan 2002 19:06:01 +0000
(19:06 +0000)
committer
cgf
<cgf>
Fri, 4 Jan 2002 19:06:01 +0000
(19:06 +0000)
winsup/cygwin/ChangeLog
patch
|
blob
|
history
winsup/cygwin/dir.cc
patch
|
blob
|
history
diff --git
a/winsup/cygwin/ChangeLog
b/winsup/cygwin/ChangeLog
index
d169b10
..
6bce225
100644
(file)
--- a/
winsup/cygwin/ChangeLog
+++ b/
winsup/cygwin/ChangeLog
@@
-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
diff --git
a/winsup/cygwin/dir.cc
b/winsup/cygwin/dir.cc
index
5713c57
..
44db5d7
100644
(file)
--- a/
winsup/cygwin/dir.cc
+++ b/
winsup/cygwin/dir.cc
@@
-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);