git: 849299d0d6cc - main - mail/heirloom-mailx: Use the proper progname in argv[0]
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Jan 2022 22:30:44 UTC
The branch main has been updated by cy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=849299d0d6cc566e3cf9681755dbcfdb8c38b9a3
commit 849299d0d6cc566e3cf9681755dbcfdb8c38b9a3
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2022-01-26 22:26:36 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2022-01-26 22:30:14 +0000
mail/heirloom-mailx: Use the proper progname in argv[0]
When argv[0] does not match that af the program name passed to
execv(2), mailwrapper cannot determine which application to call
in its translation table resulting in:
mailwrapper: no mapping in /etc/mail/mailer.conf
MFH: 2022Q1
---
mail/heirloom-mailx/Makefile | 2 +-
mail/heirloom-mailx/files/patch-sendout.c | 10 ++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/mail/heirloom-mailx/Makefile b/mail/heirloom-mailx/Makefile
index 032c39d54939..0bbf3ff46ac4 100644
--- a/mail/heirloom-mailx/Makefile
+++ b/mail/heirloom-mailx/Makefile
@@ -1,6 +1,6 @@
PORTNAME= mailx
PORTVERSION= 12.4
-PORTREVISION= 8
+PORTREVISION= 9
CATEGORIES= mail
MASTER_SITES= SF/heirloom/heirloom-${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX= heirloom-
diff --git a/mail/heirloom-mailx/files/patch-sendout.c b/mail/heirloom-mailx/files/patch-sendout.c
new file mode 100644
index 000000000000..d95e185c4e3a
--- /dev/null
+++ b/mail/heirloom-mailx/files/patch-sendout.c
@@ -0,0 +1,10 @@
+--- sendout.c.orig 2022-01-26 14:24:22.000017000 -0800
++++ sendout.c 2022-01-26 14:25:03.262517000 -0800
+@@ -885,6 +885,7 @@
+ cp = expand(cp);
+ else
+ cp = SENDMAIL;
++ args[0] = cp;
+ execv(cp, args);
+ perror(cp);
+ }