summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vtmitm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vtmitm.c b/vtmitm.c
index cf18125..30a9559 100644
--- a/vtmitm.c
+++ b/vtmitm.c
@@ -207,8 +207,8 @@ main(int argc, char *const *argv)
err("slave: dup2 stderr");
close(slave);
- execv(*cmd, cmd);
- err("slave: execv");
+ execvp(*cmd, cmd);
+ err("slave: execvp");
} else {
if (encode_resize) {
signal(SIGWINCH, sigwinch);