From 3769acfdc7e95a8df66eaa91e18695b656a32474 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sat, 25 Sep 2021 03:31:14 +0000 Subject: Fix inverted exec prepend logic Well that's embarrassing. --- service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service.c b/service.c index 38049ff..c7103f0 100644 --- a/service.c +++ b/service.c @@ -247,7 +247,7 @@ void serviceStart(struct Service *service) { } int n = snprintf( &command[len], sizeof(command) - len, "%s%s", - (service->command[strcspn(service->command, ";&|()")] ? "exec " : ""), + (service->command[strcspn(service->command, ";&|()")] ? "" : "exec "), service->command ); assert(n > 0); -- cgit 1.4.1