summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.c b/server.c
index 04eba66..a237e61 100644
--- a/server.c
+++ b/server.c
@@ -256,7 +256,7 @@ exec_cmd(struct cfg *cfg, struct server *scfg, const char *cmd)
return false;
} else {
- execl(scfg->start_exec, scfg->start_exec, NULL);
+ execl(cmd, cmd, NULL);
perror("execl");
exit(EXIT_FAILURE);
}