aboutsummaryrefslogtreecommitdiff
path: root/init/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init/init.c')
-rw-r--r--init/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c
index 9637589ce..0e4a8f1e5 100644
--- a/init/init.c
+++ b/init/init.c
@@ -808,7 +808,7 @@ static void parse_inittab(void)
808 /* optional_tty:ignored_runlevel:action:command 808 /* optional_tty:ignored_runlevel:action:command
809 * Delims are not to be collapsed and need exactly 4 tokens 809 * Delims are not to be collapsed and need exactly 4 tokens
810 */ 810 */
811 while (config_read(parser, token, -4, 0, ":", '#') >= 0) { 811 while (config_read(parser, token, 4, 0, "#:", PARSE_DONT_TRIM|PARSE_DONT_REDUCE|PARSE_LAST_IS_GREEDY)) {
812 int action; 812 int action;
813 char *tty = token[0]; 813 char *tty = token[0];
814 814
@@ -828,7 +828,7 @@ static void parse_inittab(void)
828 free(tty); 828 free(tty);
829 continue; 829 continue;
830 bad_entry: 830 bad_entry:
831 message(L_LOG | L_CONSOLE, "Bad inittab entry: %s", parser->line); 831 message(L_LOG | L_CONSOLE, "Bad inittab entry at line %d", parser->lineno);
832 } 832 }
833 config_close(parser); 833 config_close(parser);
834#endif 834#endif