mirror of
https://github.com/troglobit/finit.git
synced 2026-10-08 16:34:45 +07:00
finit.conf commands accepts multiple parameters
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
+5
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user