diff options
author | June McEnroe <june@causal.agency> | 2021-09-25 03:31:14 +0000 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-09-25 03:31:14 +0000 |
commit | 3769acfdc7e95a8df66eaa91e18695b656a32474 (patch) | |
tree | 640f018127635dc6e12a6cea917909d517705149 | |
parent | Remove freenode (diff) | |
download | catsit-3769acfdc7e95a8df66eaa91e18695b656a32474.tar.gz catsit-3769acfdc7e95a8df66eaa91e18695b656a32474.zip |
Fix inverted exec prepend logic
Well that's embarrassing.
-rw-r--r-- | service.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |