From 173853ca172211aae73c9c8ebf62c72433bec72a Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Mon, 11 Aug 2008 19:02:55 -0300 Subject: [PATCH] finit.conf commands accepts multiple parameters Signed-off-by: Claudio Matsuoka --- finit-alt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/finit-alt.c b/finit-alt.c index 42c5e516..7deae70e 100644 --- a/finit-alt.c +++ b/finit-alt.c @@ -132,8 +132,12 @@ static void build_cmd(char *cmd, char *x, int len) char *c; c = cmd + strlen(cmd); + + /* skip spaces */ for (; *x && (*x == ' ' || *x == '\t'); x++); - for (l = 0; *x && *x != ' ' && *x != '\t' && l < len; l++) + + /* copy next arg */ + for (l = 0; *x && *x != '#' && *x != '\t' && l < len; l++) *c++ = *x++; *c = 0; if (debug)