Mail Archives: cygwin-developers/1998/11/17/19:25:33
>>> On Tue, 17 Nov 1998 08:26:50 -0500
>>> Christopher Faylor <cgf AT cygnus DOT com> said:
> I don't believe that this patch will handle the case of
> /a/b/c/d where c and d are both symlinks.
It is true. By applying the following patch moreover, it may
comes to work fine.
--- path.cc- Wed Nov 18 11:52:21 1998
+++ path.cc Wed Nov 18 11:22:28 1998
@@ -1604,7 +1604,7 @@
int
readlink (const char *path, char *buf, int buflen)
{
- path_conv pathbuf (path, -1);
+ path_conv pathbuf (path, 0);
if (pathbuf.error)
{
set_errno (pathbuf.error);
____
| AIST Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
| HOKURIKU School of Information Science
o_/ 1990 Japan Advanced Institute of Science and Technology
- Raw text -