summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mailwrapper/mailwrapper.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* remove unused copy argument from addarg()jung2015-12-281-12/+9
| | | | | | diff from Serguey Parkhomovsky via tech@ ok sunil millert
* Update default MTA reference to smtpd(8). Rectify documentation ofsunil2015-12-141-2/+2
| | | | | | | | fallback behaviour when configuration file is missing. Documentation bits from Serguey Parkhomovsky. Ok jung@ "if the fallback code stays"
* surprisingly, this can pledge "stdio rpath exec" right at start. oncederaadt2015-10-121-2/+10
| | | | | the config file is opened, it can pledge "stdio exec", and be on its merry way to start the real MTA
* simple reallocarray() use; ok dougderaadt2014-10-081-2/+2
|
* avoid coredump when ther;s only one token on a line; ok millert@otto2007-11-061-2/+2
|
* use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt2007-09-021-2/+2
|
* Back out rev 1.2 as it doesn't make sense--since we exit on failuremillert2004-07-061-12/+3
| | | | | there is no need to save the old value of the pointer we are realloc()ing. Based on a diff from Andrey Matveev.
* As pointed out by Perry, mailwrapper is never invoked directly,millert2003-03-091-3/+8
| | | | | | | err/warn will show names like sendmail, mailq, etc which is confusing. However, prefixing "mailwrapper" to the string passed to err/warn is ugly too. The least evil alternative seems to be to stash the value of __progname for checking and assign "mailwrapper" to __progname.
* Bleah, someone beat me to this but I have some minor chagesmillert2003-03-081-3/+3
|
* fix err/errx uses; andrushock@korovino.netderaadt2003-03-081-11/+10
|
* Don't bother free()ing memory when we are just headed for exit().millert2002-12-201-17/+1
| | | | Fixes a bug whereby freed memory was used in an error case.
* KNFderaadt2002-12-091-18/+9
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-5/+5
|
* do not free unallocated memory, PR#1989jakob2001-08-081-2/+1
|
* Place NULL arg on end of argv array only after all other args. mickey@ okimp2000-01-101-3/+4
|
* extra : in err(); impderaadt2000-01-101-2/+2
|
* terminate an arg vector w/ NULLmickey1999-12-171-1/+3
|
* Proper error output.ho1999-09-281-2/+2
|
* Fallback to sendmail if /etc/mailer.conf is missing.jakob1999-08-021-3/+14
|
* Indentationjakob1999-08-021-12/+12
|
* Fix realloc bug.jakob1999-08-021-4/+13
|
* Integration of mailwrapper (from NetBSD)jakob1999-08-021-0/+166
"The mailwrapper program is designed to replace /usr/sbin/sendmail and to invoke an appropriate MTA instead of sendmail(8) based on configuration information placed in /etc/mailer.conf. This permits the administrator to configure which MTA is to be invoked on the system at run time." OK deraadt, millert