[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'info mount' doesn't follow ref
From: |
Gavin Smith |
Subject: |
Re: 'info mount' doesn't follow ref |
Date: |
Sun, 9 Jul 2017 19:55:59 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Mon, Jul 03, 2017 at 03:17:33PM +0200, Vitezslav Crhonek wrote:
> The culprit seems to be info_find_subfile() function in nodes.c,
> more precisely this line:
> /* Check if fullpath starts the name of the recorded file (extra
> extensions like ".info.gz" could be added.) */
> if (!strncmp (file_buffer->fullpath, fullpath, strlen (fullpath)))
>
> If "/usr/share/info/libc.info-11" is on the list of already
> loaded files ('info mount' case), that comparison falsely succeeds
> (!strncmp ("/usr/share/info/libc.info-11",
> "/usr/share/info/libc.info-1",
> 27))
>
> But the node obviously isn't present there and following the reference
> fails in the end. Otherwise correct file
> "/usr/share/info/libc.info-1.gz" is found and the node is displayed.
I've committed a change that should fix this. It will be included in
future releases.