summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2019-03-19 13:26:27 +0000
committermillert <millert@openbsd.org>2019-03-19 13:26:27 +0000
commit4218f86768d33c3820873c94f659b0758f234dcd (patch)
treec95909142f97754005b77341f2fc79151567c335
parentIn uaudio_pdata_intr() don't error out early if the status is USBD_IOERROR. (diff)
downloadwireguard-openbsd-4218f86768d33c3820873c94f659b0758f234dcd.tar.xz
wireguard-openbsd-4218f86768d33c3820873c94f659b0758f234dcd.zip
When running sendmail, set argv[0] to "sendmail" not "send-mail".
This was a historical oddity that dates back to back to the days of delivermail.
-rw-r--r--usr.bin/mail/send.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mail/send.c b/usr.bin/mail/send.c
index 8f127ac837f..cbb96778028 100644
--- a/usr.bin/mail/send.c
+++ b/usr.bin/mail/send.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: send.c,v 1.24 2015/01/20 16:59:07 millert Exp $ */
+/* $OpenBSD: send.c,v 1.25 2019/03/19 13:26:27 millert Exp $ */
/* $NetBSD: send.c,v 1.6 1996/06/08 19:48:39 christos Exp $ */
/*
@@ -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");