delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/11/17/19:25:33

From: fujieda AT jaist DOT ac DOT jp (Kazuhiro Fujieda)
Subject: Re: readlink
17 Nov 1998 19:25:33 -0800 :
Message-ID: <uaf1pn14l.fsf.cygnus.cygwin32.developers@parvati.will.or.jp>
References: <uaf1qdckw DOT fsf AT parvati DOT will DOT or DOT jp>
Mime-Version: 1.0 (generated by SEMI MIME-Edit 0.100 - "Shijima")
To: cygwin32-developers AT cygnus DOT com

>>> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019