summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-11-09 00:20:22 +0100
committerLouis Burda <quent.burda@gmail.com>2023-11-09 00:20:22 +0100
commit198987a8b81f635039fd73711ace03d73df36e5c (patch)
tree956ca7c85e604ed8493669f7466410c5990e0ba0
parent95a0bb40eabd33871edb99278c8e9d35f85b2ba8 (diff)
downloadvtmitm-master.tar.gz
vtmitm-master.zip
Use execvp() for path resolutionHEADmaster
-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);