Patch to said function in HEAD attached. find_and_load always sets global input_filename to a new malloced string when it succeeds, whereupon convert_from_file simply overwrites it with its own version.
It also removes some code that does nothing as long as `suffixes' stays more or less like it is. -- ;;; Stephen Compall ** http://scompall.nocandysw.com/blog ** "Peta" is Greek for fifth; a petabyte is 10 to the fifth power, as well as fifth in line after kilo, mega, giga, and tera. -- Lee Gomes, performing every Wednesday in his tech column "Portals" on page B1 of The Wall Street Journal
Index: makeinfo/makeinfo.c
===================================================================
RCS file: /sources/texinfo/texinfo/makeinfo/makeinfo.c,v
retrieving revision 1.106
diff -u -d -r1.106 makeinfo.c
--- makeinfo/makeinfo.c 15 Sep 2007 23:48:45 -0000 1.106
+++ makeinfo/makeinfo.c 20 Sep 2007 03:59:53 -0000
@@ -1382,13 +1382,6 @@
if (find_and_load (filename, 1))
break;
-
- if (!suffixes[i][0] && strrchr (filename, '.'))
- {
- fs_error (filename);
- free (filename);
- return;
- }
}
if (!suffixes[i])
@@ -1398,6 +1391,7 @@
return;
}
+ free (input_filename);
input_filename = filename;
convert_from_loaded_file (name);
signature.asc
Description: This is a digitally signed message part
