On Mon, Jul 03, 2017 at 03:17:33PM +0200, Vitezslav Crhonek wrote:
> On the other hand 'info libc' and following the same link
> works fine:
> info: looking for file "libc"
> info: looking for file libc in /usr/share/info
> info: found file /usr/share/info/libc.info.gz
> info: looking for file "/usr/share/info/libc.info-1"
> info: found file /usr/share/info/libc.info-1.gz
>
> 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))
Thanks for reporting this and tracking down the problem; I'll look into
fixing it.