summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-09 19:32:12 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-09 19:32:12 +0200
commit512dae07e3249d3eaab6e468bf77816d053c9101 (patch)
tree5f2b89c497d3036ab279d4d4ffd1cfc7d0f99984
parentdde820746850b4abe18503e7c6f38d6532a407ce (diff)
Ehrm....execute the right command
-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);
}