[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] xreadlink.c patch
From: |
Bruno Haible |
Subject: |
Re: [Bug-gnulib] xreadlink.c patch |
Date: |
Fri, 5 Nov 2004 22:44:59 +0100 |
User-agent: |
KMail/1.5 |
Paul Eggert wrote:
> > 1) bugfix. readlink() on AIX 4.3 returns a
> > negative link_length and sets errno == ERANGE
> > when the length of the link is greater than
> > buf_size.
>
> Shouldn't this incompatibility be fixed in readlink.c rather than
> xreadlink?
Yes, I agree. Furthermore, on an older version of AIX the following
behaviour was seen on NFS mounted directories: after lstat(), the st_size
field did not contain the exact link size: the readlink() call returns
a different value. I don't remember whether the return value was larger
or smaller than st_size. I'll try to reproduce that...
Bruno
Re: [Bug-gnulib] xreadlink.c patch,
Bruno Haible <=