summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mailwrapper/mailwrapper.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r270675:bdrewery2016-01-061-4/+15
| | | | | | | Allow mailwrapper to use mailer.conf from localbase (respecting LOCALBASE env var if set) PR: 205965
* Sync with OpenBSD:delphij2010-03-301-4/+4
| | | | | | | | | - 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
* Update NetBSD and OpenBSD SCM tags to match the reality. Note thatdelphij2006-08-071-2/+2
| | | | | | 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.
* Cleanups for mailwrapper(8):delphij2006-06-061-69/+41
| | | | | | | | | | | | | | | - 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)
* add FBSDIDcharnier2003-07-061-1/+3
|
* de-__P()alfred2002-07-111-4/+4
|
* Don't free memory that was never allocated. This fixes a core dump indd2001-08-091-1/+0
| | | | | | | the case where both the config file and the default MTA don't exist. PR: 29521 Submitted by: marius@alchemy.franken.de
* You can't free a string and then use it as the error message topaul2001-06-041-1/+2
| | | | | | | 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.
* Do not add progname in err() strings, it will be printed twicecharnier2000-05-281-9/+8
|
* Merge from OpenBSD:imp2000-01-101-9/+30
| | | | | | | | | | | | 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 :-)
* Fix mysterious sendmail coredump on systems where malloc.conf pointed toimp2000-01-101-2/+4
| | | | | | | | | 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.
* Make mailwrapper buildpeter1999-12-291-2/+3
|
* Import NetBSD's mailwrapper to redirect /usr/sbin/sendmail to the user'speter1999-12-191-0/+165
chosen mailer. Obtained from: NetBSD
OpenPOWER on IntegriCloud