<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH] Use execvp to call sendmail



On Fri, 16 Mar 2007, Christoph Berg wrote:

# HG changeset patch
# User Christoph Berg <cb@xxxxxxxx>
# Date 1174055839 -3600
# Node ID c82435f2db41fd63b91cfbb9e7f820ac9839e445
# Parent  347824928102661e6dea3b4f411324320e755a07
Use execvp to call sendmail, useful for people trying sendmail="ssh host 
sendmail".

diff -r 347824928102 -r c82435f2db41 sendlib.c
--- a/sendlib.c Fri Mar 16 15:04:59 2007 +0100
+++ b/sendlib.c Fri Mar 16 15:37:19 2007 +0100
@@ -2001,7 +2001,7 @@ send_msg (const char *path, char **args,
          _exit (S_ERR);
      }

-      execv (path, args);
+      execvp (path, args);

same advice (it should be explicitly configurable).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net