[PATCH] report "Bad inittab entry: " for empty line
温曙光
dulocwen at gmail.com
Fri Jan 11 00:07:46 PST 2008
hello:
when i boot, many "bad inittab entry" was printed.
i saw it's a simple problem.
endo at endo-lab:/usr/src/busybox$ svn diff
Index: init/init.c
===================================================================
--- init/init.c (revision 20841)
+++ init/init.c (working copy)
@@ -757,7 +757,7 @@
/* Skip leading spaces */
id = skip_whitespace(buf);
/* Skip the line if it's a comment */
- if (*id == '#' || *id == '\n')
+ if (*id == '#' || *id == '\n' || (*id == '\0'))
continue;
/* Trim the trailing '\n' */
*strchrnul(id, '\n') = '\0';
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
Url: http://busybox.net/lists/busybox/attachments/20080111/ce8893d1/attachment.txt
More information about the busybox
mailing list