From 5da4f4cfc3023b72d62011251e90c0e576deb999 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 17 Sep 2012 10:43:02 +0200 Subject: [PATCH] Add support for standard UNIX comment chars in finit.conf finit.c: Skip standard UNIX comment character '#' if it appears at the beginning of a row in finit.conf Signed-off-by: Joachim Nilsson --- finit.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/finit.c b/finit.c index 670d152b..1322ea43 100644 --- a/finit.c +++ b/finit.c @@ -112,6 +112,10 @@ int main(void) _d("conf: %s", line); + /* Skip comments. */ + if (MATCH_CMD(line, "#", x)) { + continue; + } /* Do this before mounting / read-write */ if (MATCH_CMD(line, "check ", x)) { strcpy(cmd, "/sbin/fsck -C -a ");