For some reason mail(1) is using "send-mail" as argv[0] for sendmail.
/etc/mailer.conf and smtpctl handle this identically to "sendmail", so
it seems a bit redundant. This diff makes mail(1) use "sendmail" as
argv[0], possibly allowing that duplication to be removed later from
mailer.conf and smtpctl.

Noticed while porting mail(1) to Unleashed (where we also have
mailwrapper, but no default configuration for "send-mail").

diff --git a/usr.bin/mail/send.c b/usr.bin/mail/send.c
index 8f127ac837f..723f9da0a53 100644
--- a/usr.bin/mail/send.c
+++ b/usr.bin/mail/send.c
@@ -371,7 +371,7 @@ mail1(struct header *hp, int printheaders)
                (void)savemail(expand(cp), mtf);
        
        /* Setup sendmail arguments. */
-        *ap++ = "send-mail";
+        *ap++ = "sendmail";
         *ap++ = "-i";
         *ap++ = "-t";
        cp = hp->h_from ? hp->h_from : value("from");
-- 
Lauri Tirkkonen | lotheac @ IRCnet

Reply via email to