delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/11/18/06:21:15

From: cgf AT cygnus DOT com (Christopher Faylor)
Subject: Re: readlink
18 Nov 1998 06:21:15 -0800 :
Message-ID: <19981118090258.E25096.cygnus.cygwin32.developers@cygnus.com>
References: <uaf1qdckw DOT fsf AT parvati DOT will DOT or DOT jp>
Mime-Version: 1.0
To: Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>, cygwin32-developers AT cygnus DOT com

I have fixed this in another way in our sources.  It should be
in B20.1, assuming I can fix the "slow configure" problem.

On Wed, Nov 18, 1998 at 12:14:18PM +0900, Kazuhiro Fujieda wrote:
>>>> 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
>

-- 
cgf AT cygnus DOT com
http://www.cygnus.com/

- Raw text -


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