vtmitm

Vtty output duplicator
git clone https://git.sinitax.com/sinitax/vtmitm
Log | Files | Refs | README | sfeed.txt

commit 198987a8b81f635039fd73711ace03d73df36e5c
parent 95a0bb40eabd33871edb99278c8e9d35f85b2ba8
Author: Louis Burda <quent.burda@gmail.com>
Date:   Thu,  9 Nov 2023 00:20:22 +0100

Use execvp() for path resolution

Diffstat:
Mvtmitm.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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);