File: 484740.diff

package info (click to toggle)
texinfo 7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 99,732 kB
  • sloc: perl: 640,320; ansic: 153,222; sh: 17,327; xml: 9,180; makefile: 2,527; javascript: 1,938; awk: 1,902; python: 74; pascal: 68; sed: 39
file content (26 lines) | stat: -rw-r--r-- 1,030 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Vincent Lefevre <vincent@vinc17.org>
Date: Tue, 24 Feb 2026 21:54:08 +0100
Subject: [PATCH] buggy resolution of cross-references (does not ignore non-info files that are in the way)
Origin: upstream
Bug-Debian: https://bugs.debian.org/484740

diff --git a/info/session-cmd.c b/info/session-cmd.c
index 20821d194c..d090b7a156 100644
--- a/info/session-cmd.c
+++ b/info/session-cmd.c
@@ -1144,7 +1144,13 @@ filename_for_xref (char *filename_in, NODE *defaults)
                                        defaults->fullpath, 0);
                   *p = saved_char;
                   if (file_in_same_dir)
-                    filename = file_in_same_dir;
+                    {
+                      /* Ensure file can be loaded and at least looks
+                         like an Info file. */
+                      FILE_BUFFER *fb2 = info_find_file (file_in_same_dir);
+                      if (fb2)
+                        filename = file_in_same_dir;
+                    }
                 }
             }
         }