Bug 259147 - mail/sendmail: Unbreak aliases file continuation lines after 8.17.1
Summary: mail/sendmail: Unbreak aliases file continuation lines after 8.17.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords: patch, regression
Depends on:
Blocks:
 
Reported: 2021-10-13 17:30 UTC by Craig Leres
Modified: 2021-10-17 21:02 UTC (History)
1 user (show)

See Also:
dinoex: maintainer-feedback+


Attachments
patch (882 bytes, patch)
2021-10-13 17:31 UTC, Craig Leres
leres: maintainer-approval? (dinoex)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Leres freebsd_committer freebsd_triage 2021-10-13 17:30:32 UTC
After upgrading to sendmail 8.17.1 I find that continuation lines, as documented in aliases(5), no longer work:

    # svn diff
    Index: aliases
    ===================================================================
    --- aliases     (revision 52)
    +++ aliases     (working copy)
    @@ -4,6 +4,9 @@
     MAILER-DAEMON: postmaster
     postmaster: root
 
    +tester: root,
    +    leres
    +
     # General redirections for pseudo accounts
     bin:   root
     daemon:        root
    # newaliases
    /etc/mail/aliases: line 8: Non-continuation line starts with space
    /etc/mail/aliases: 18 aliases, longest 19 bytes, 245 bytes total

I found a thread in the comp.mail.sendmail google group with a patch:

    https://groups.google.com/g/comp.mail.sendmail/c/V9GeqvBi2rY/m/redOVdkbAwAJ

(After unmangling the whitespace) it fixes the error, I'll attach a version of the patch.
Comment 1 Craig Leres freebsd_committer freebsd_triage 2021-10-13 17:31:43 UTC
Created attachment 228674 [details]
patch
Comment 2 Dirk Meyer freebsd_committer freebsd_triage 2021-10-16 05:43:26 UTC
testing patch
Comment 3 commit-hook freebsd_committer freebsd_triage 2021-10-17 21:01:45 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=dec0174b5b386318cf533e98ffbf0280f282aaee

commit dec0174b5b386318cf533e98ffbf0280f282aaee
Author:     Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2021-10-17 20:59:23 +0000
Commit:     Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2021-10-17 20:59:23 +0000

    mail/sendmail: Fix aliases file continuation lines

    PR: 259147

 mail/sendmail/Makefile                  |  2 +-
 mail/sendmail/files/patch-alias.c (new) | 17 +++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletion(-)