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;
+ }
}
}
}
|