mirror of
https://github.com/troglobit/finit.git
synced 2026-11-10 16:31:21 +00:00
finit.conf commands accepts multiple parameters
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
9f83bbe788
commit
173853ca17
1 file changed
+5
-1
+5
-1
@@ -132,8 +132,12 @@ static void build_cmd(char *cmd, char *x, int len)
|
|||||||
char *c;
|
char *c;
|
||||||
|
|
||||||
c = cmd + strlen(cmd);
|
c = cmd + strlen(cmd);
|
||||||
|
|
||||||
|
/* skip spaces */
|
||||||
for (; *x && (*x == ' ' || *x == '\t'); x++);
|
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++ = *x++;
|
||||||
*c = 0;
|
*c = 0;
|
||||||
if (debug)
|
if (debug)
|
||||||
|
|||||||
Reference in new issue
Block a user