diff options
author | Cy Schubert <cy@FreeBSD.org> | 2022-01-26 14:26:36 -0800 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2022-01-26 14:30:14 -0800 |
commit | 849299d0d6cc566e3cf9681755dbcfdb8c38b9a3 (patch) | |
tree | 0acc0dd0c3d138ac1ea1275fb5c59a21093471ae | |
parent | 646499bcb3f4f8e8ba96b767d102d674091c674c (diff) | |
download | freebsd-ports-849299d0d6cc566e3cf9681755dbcfdb8c38b9a3.zip |
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
-rw-r--r-- | mail/heirloom-mailx/Makefile | 2 | ||||
-rw-r--r-- | mail/heirloom-mailx/files/patch-sendout.c | 10 |
2 files changed, 11 insertions, 1 deletions
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); + } |