Bug#336560: vim loops forever in readlink on startup when opening symlinked file with two parent directories of the same name

James Vega jamessan at jamessan.com
Tue Nov 1 13:32:40 UTC 2005


On Tue, Nov 01, 2005 at 06:39:18AM -0500, James Vega wrote:
> On Mon, Oct 31, 2005 at 11:25:13PM +0100, Stefano Zacchiroli wrote:
> > On Mon, Oct 31, 2005 at 08:59:17AM +0100, Frode E. Moe wrote:
> > > VIM loops forever in "readlink", according to strace, when running this script:
> >
> > I will have a look at this, since it is almost certainly a bug
> > introduced by my readlink patch.
> 
> The attached patch fixes the problem.  The only worry I have (as
> commented in the patch) is what happens when readlink returns -1 and
> errno isn't set to EINVAL.  Is that even a possible scenario based on
> the conditions necessary to be calling that code?

Oops, forgot I had already sent the patch.  :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20051101/fa074671/attachment.pgp


More information about the pkg-vim-maintainers mailing list