From 0a54a9624a4748ba0673bd9964e0ba08cdb76301 Mon Sep 17 00:00:00 2001 From: Yaroslav Syrytsia Date: Thu, 26 Mar 2020 05:16:52 +0100 Subject: [PATCH] Fix #123: Regression in sysv start/stop scripts Signed-off-by: Joachim Nilsson --- src/exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/exec.c b/src/exec.c index 84b9181d..884e7cf2 100644 --- a/src/exec.c +++ b/src/exec.c @@ -484,9 +484,9 @@ int run_parts(char *dir, char *cmd) /* Check if Sservice or Kservice notation is used */ _d("Checking if %s is a sysvinit startstop script ...", name); if (name[0] == 'S' && isdigit(name[1])) - strlcat(path, "start", sizeof(path)); + strlcat(path, " start", sizeof(path)); else if (name[0] == 'K' && isdigit(name[1])) - strlcat(path, "stop", sizeof(path)); + strlcat(path, " stop", sizeof(path)); } else { strlcat(path, cmd, sizeof(path)); }