History log of /freebsd-11.0-release/usr.sbin/mailwrapper/mailwrapper.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 303975 11-Aug-2016 gjb

Copy stable/11@r303970 to releng/11.0 as part of the 11.0-RELEASE
cycle.

Prune svn:mergeinfo from the new branch, and rename it to RC1.

Update __FreeBSD_version.

Use the quarterly branch for the default FreeBSD.conf pkg(8) repo and
the dvd1.iso packages population.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 302408 08-Jul-2016 gjb

Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle.
Prune svn:mergeinfo from the new branch, as nothing has been merged
here.

Additional commits post-branch will follow.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 270675 26-Aug-2014 bapt

Allow mailwrapper to use mailer.conf from localbase (respecting LOCALBASE env var if set)

Phabric: https://reviews.freebsd.org/D412
Reviewed by: bdrewery
MFC after: 2 weeks
Relnotes: yes


# 205938 30-Mar-2010 delphij

Sync with OpenBSD:
- avoid coredump when there's only one token on a line;
- Use calloc();
- Remove a line inherited from example mdoc.

Obtained from: OpenBSD
MFC after: 1 month


# 161038 07-Aug-2006 delphij

Update NetBSD and OpenBSD SCM tags to match the reality. Note that
NetBSD revisions 1.8 and 1.9 are not actually applied to our code base
because we have solved the problem differently, therefore, these changes
can be safely skipped.


# 159326 06-Jun-2006 delphij

Cleanups for mailwrapper(8):
- K&R -> ANSI prototype [O]
- Do not bother to do free right before exit() or execve() [O]
- Remove some dead code in addarg()
- Make additional parameters specified in mailer.conf(5)
actually work and document the fact. [N]
- Avoid using __progname but instead use getprogname()
and setprogname() to provide more sensible messages. [O, N]
- Update $OpenBSD$ and $NetBSD$ to reflect the fact that we
have sync'ed with their code.
- WARNS=6

Obtained from/Inspired by: OpenBSD [O], NetBSD [N] (partially)


# 117280 06-Jul-2003 charnier

add FBSDID


# 99800 11-Jul-2002 alfred

de-__P()


# 81344 09-Aug-2001 dd

Don't free memory that was never allocated. This fixes a core dump in
the case where both the config file and the default MTA don't exist.

PR: 29521
Submitted by: marius@alchemy.franken.de


# 77679 04-Jun-2001 paul

You can't free a string and then use it as the error message to
errx. Instead use warn to print the string, then cleanup and exit
normally.

This fixes a core dump if the executable to be run doesn't exist.


# 61023 28-May-2000 charnier

Do not add progname in err() strings, it will be printed twice


# 55705 10-Jan-2000 imp

Merge from OpenBSD:
o Realloc memory leak fixed which won't matter but would trigger purify
o Default to sendmail when no mailer.conf exists.

Fixed bugs in OpenBSD version:
o Add NULL termination in the right place.

Also put back the err. free shouldn't touch errno.

Pointed out by: theo de raadt (except the NULL bug :-)


# 55698 10-Jan-2000 imp

Fix mysterious sendmail coredump on systems where malloc.conf pointed to
a string containign 'J'.

o Properly terminate argv list with a NULL entry.
o Use warn() to report the exec failure because free could change errno and
err would report the wrong reason.
o Don't terminate string to err with ':' since this results in two colons.


# 55228 29-Dec-1999 peter

Make mailwrapper build


# 54817 19-Dec-1999 peter

This commit was generated by cvs2svn to compensate for changes in r54816,
which included commits to RCS files with non-trunk default branches.


# 54816 19-Dec-1999 peter

Import NetBSD's mailwrapper to redirect /usr/sbin/sendmail to the user's
chosen mailer.

Obtained from: NetBSD