From 4163527006c7c4ca8e6f0dfec5af82d92f7ceae2 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 9 Mar 2020 14:29:04 +0100 Subject: [PATCH] Fix run-parts regression introduced in 9a98bff2 Signed-off-by: Joachim Nilsson --- src/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exec.c b/src/exec.c index 52f32ecd..84b9181d 100644 --- a/src/exec.c +++ b/src/exec.c @@ -468,7 +468,7 @@ int run_parts(char *dir, char *cmd) char *name = e[i]->d_name; pid_t pid = 0; - snprintf(path, sizeof(path), "%s/%s ", dir, name); + snprintf(path, sizeof(path), "%s/%s", dir, name); if (stat(path, &st)) { _d("Failed stat(%s): %s", path, strerror(errno)); continue;