Hi!
makeinfo -html --css-include=foo.css bar.texinfo
Opens file foo.css, but not close it, which may lead to error:
Too many open files
I received this error when porting sbcl-1.0.36
--
Alexandr Shadchin
Index: makeinfo/html.c
===================================================================
RCS file: /cvs/src/gnu/usr.bin/texinfo/makeinfo/html.c,v
retrieving revision 1.2
diff -u -p -r1.2 html.c
--- makeinfo/html.c 17 Jul 2006 22:29:29 -0000 1.2
+++ makeinfo/html.c 6 Mar 2010 11:27:38 -0000
@@ -167,6 +167,9 @@ process_css_file (char *filename)
lastchar = c;
}
+ if (f != stdin)
+ fclose(f);
+
/* Reached the end of the file. We should not be still in a comment. */
if (state == comment_state)
warning (_("%s:%d: --css-file ended in comment"), filename, lineno);