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:
b8dfcd6
)
* path.cc (_readlink): Return ENOENT when file does not exist.
author
cgf
<cgf>
Tue, 31 Oct 2000 23:01:20 +0000
(23:01 +0000)
committer
cgf
<cgf>
Tue, 31 Oct 2000 23:01:20 +0000
(23:01 +0000)
winsup/cygwin/ChangeLog
patch
|
blob
|
history
winsup/cygwin/path.cc
patch
|
blob
|
history
diff --git
a/winsup/cygwin/ChangeLog
b/winsup/cygwin/ChangeLog
index
2ddf461
..
c3fd690
100644
(file)
--- a/
winsup/cygwin/ChangeLog
+++ b/
winsup/cygwin/ChangeLog
@@
-1,3
+1,7
@@
+Tue Oct 31 17:57:52 2000 Christopher Faylor <cgf@cygnus.com>
+
+ * path.cc (_readlink): Return ENOENT when file does not exist.
+
Tue Oct 31 23:35:00 2000 Corinna Vinschen <corinna@vinschen.de>
* fhandler.h (fhandler_dev_raw): Add method `fixup_after_exec'.
diff --git
a/winsup/cygwin/path.cc
b/winsup/cygwin/path.cc
index
ff622e9
..
7899a05
100644
(file)
--- a/
winsup/cygwin/path.cc
+++ b/
winsup/cygwin/path.cc
@@
-2371,6
+2371,12
@@
readlink (const char *path, char *buf, int buflen)
return -1;
}
+ if (pathbuf.file_attributes () == (DWORD) -1)
+ {
+ set_errno (ENOENT);
+ return -1;
+ }
+
if (!pathbuf.issymlink ())
{
if (pathbuf.fileattr != (DWORD) -1)