From 2e928f24d9ceeb2292307f6c1e7dd1fe0f26d76d Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Fri, 16 Mar 2007 15:37:19 +0100 Subject: [PATCH] Use execvp to call sendmail, useful for people trying sendmail="ssh host sendmail". --- sendlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sendlib.c b/sendlib.c index d9cfacb01..3d123be7b 100644 --- a/sendlib.c +++ b/sendlib.c @@ -2001,7 +2001,7 @@ send_msg (const char *path, char **args, const char *msg, char **tempfile) _exit (S_ERR); } - execv (path, args); + execvp (path, args); _exit (S_ERR); } else if (pid == -1) -- 2.50.1