mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
Fix regression introduced in 13893b9
The refactor in 13893b9 caused a regression in composing service
arguments. This patch should rectify that.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+2
-2
@@ -358,7 +358,7 @@ static int service_start(svc_t *svc)
|
||||
if (!svc_is_sysv(svc)) {
|
||||
for (i = 0; i < MAX_NUM_SVC_ARGS; i++) {
|
||||
if (strlen(svc->args[i]) == 0)
|
||||
continue;
|
||||
break;
|
||||
args[i] = svc->args[i];
|
||||
}
|
||||
} else {
|
||||
@@ -394,7 +394,7 @@ static int service_start(svc_t *svc)
|
||||
} else if (debug) {
|
||||
char buf[CMD_SIZE] = "";
|
||||
|
||||
for (i = 1; i < MAX_NUM_SVC_ARGS; i++) {
|
||||
for (i = 0; i < MAX_NUM_SVC_ARGS; i++) {
|
||||
if (strlen(svc->args[i]) == 0)
|
||||
continue;
|
||||
if (buf[0])
|
||||
|
||||
Reference in New Issue
Block a user