Use execvp to call sendmail, useful for people trying sendmail="ssh host sendmail".
authorChristoph Berg <cb@df7cb.de>
Fri, 16 Mar 2007 14:37:19 +0000 (15:37 +0100)
committerChristoph Berg <cb@df7cb.de>
Fri, 16 Mar 2007 14:37:19 +0000 (15:37 +0100)
sendlib.c

index d9cfacb0165d93241efda3bf8383871483236396..3d123be7bfbbe3e099971c19fb009c58479bb0bd 100644 (file)
--- 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)