OpenBSD CVS

CVS log for src/usr.sbin/mailwrapper/mailwrapper.c


[BACK] Up to [local] / src / usr.sbin / mailwrapper

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.23 / (download) - annotate - [select for diffs], Wed Jun 14 16:32:11 2017 UTC (6 years, 11 months ago) by anton
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, HEAD
Changes since 1.22: +4 -6 lines
Diff to previous 1.22 (colored)

Remove main() prototype and unused envp argument.

ok deraadt@ martijn@

Revision 1.22 / (download) - annotate - [select for diffs], Mon Dec 28 16:27:28 2015 UTC (8 years, 5 months ago) by jung
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.21: +9 -12 lines
Diff to previous 1.21 (colored)

remove unused copy argument from addarg()

diff from Serguey Parkhomovsky via tech@

ok sunil millert

Revision 1.21 / (download) - annotate - [select for diffs], Mon Dec 14 02:56:07 2015 UTC (8 years, 5 months ago) by sunil
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Update default MTA reference to smtpd(8). Rectify documentation of
fallback behaviour when configuration file is missing.

Documentation bits from Serguey Parkhomovsky.

Ok jung@ "if the fallback code stays"

Revision 1.20 / (download) - annotate - [select for diffs], Mon Oct 12 22:01:08 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +10 -2 lines
Diff to previous 1.19 (colored)

surprisingly, this can pledge "stdio rpath exec" right at start. once
the config file is opened, it can pledge "stdio exec", and be on its
merry way to start the real MTA

Revision 1.19 / (download) - annotate - [select for diffs], Wed Oct 8 04:27:32 2014 UTC (9 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

simple reallocarray() use; ok doug

Revision 1.18 / (download) - annotate - [select for diffs], Tue Nov 6 14:39:19 2007 UTC (16 years, 7 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

avoid coredump when ther;s only one token on a line; ok millert@

Revision 1.17 / (download) - annotate - [select for diffs], Sun Sep 2 15:19:39 2007 UTC (16 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jul 6 03:38:14 2004 UTC (19 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.15: +3 -12 lines
Diff to previous 1.15 (colored)

Back out rev 1.2 as it doesn't make sense--since we exit on failure
there is no need to save the old value of the pointer we are
realloc()ing.  Based on a diff from Andrey Matveev.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Mar 9 01:24:26 2003 UTC (21 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.14: +8 -3 lines
Diff to previous 1.14 (colored)

As pointed out by Perry, mailwrapper is never invoked directly,
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.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Mar 8 23:19:32 2003 UTC (21 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Bleah, someone beat me to this but I have some minor chages

Revision 1.13 / (download) - annotate - [select for diffs], Sat Mar 8 21:29:45 2003 UTC (21 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +10 -11 lines
Diff to previous 1.12 (colored)

fix err/errx uses; andrushock@korovino.net

Revision 1.12 / (download) - annotate - [select for diffs], Fri Dec 20 15:29:54 2002 UTC (21 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.11: +1 -17 lines
Diff to previous 1.11 (colored)

Don't bother free()ing memory when we are just headed for exit().
Fixes a bug whereby freed memory was used in an error case.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Dec 9 11:05:22 2002 UTC (21 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +9 -18 lines
Diff to previous 1.10 (colored)

KNF

Revision 1.10 / (download) - annotate - [select for diffs], Sat Feb 16 21:28:04 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored)

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.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Aug 8 00:47:52 2001 UTC (22 years, 10 months ago) by jakob
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.8: +1 -2 lines
Diff to previous 1.8 (colored)

do not free unallocated memory, PR#1989

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jan 10 05:34:32 2000 UTC (24 years, 5 months ago) by imp
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.7: +4 -3 lines
Diff to previous 1.7 (colored)

Place NULL arg on end of argv array only after all other args.  mickey@ ok

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jan 10 02:46:56 2000 UTC (24 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

extra : in err(); imp

Revision 1.6 / (download) - annotate - [select for diffs], Fri Dec 17 05:06:28 1999 UTC (24 years, 5 months ago) by mickey
Branch: MAIN
Changes since 1.5: +3 -1 lines
Diff to previous 1.5 (colored)

terminate an arg vector w/ NULL

Revision 1.5 / (download) - annotate - [select for diffs], Tue Sep 28 15:25:45 1999 UTC (24 years, 8 months ago) by ho
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Proper error output.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Aug 2 21:13:22 1999 UTC (24 years, 10 months ago) by jakob
Branch: MAIN
Changes since 1.3: +14 -3 lines
Diff to previous 1.3 (colored)

Fallback to sendmail if /etc/mailer.conf is missing.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Aug 2 20:42:24 1999 UTC (24 years, 10 months ago) by jakob
Branch: MAIN
Changes since 1.2: +11 -11 lines
Diff to previous 1.2 (colored)

Indentation

Revision 1.2 / (download) - annotate - [select for diffs], Mon Aug 2 20:25:47 1999 UTC (24 years, 10 months ago) by jakob
Branch: MAIN
Changes since 1.1: +13 -4 lines
Diff to previous 1.1 (colored)

Fix realloc bug.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Aug 2 19:50:08 1999 UTC (24 years, 10 months ago) by jakob
Branch: MAIN

Integration of mailwrapper (from NetBSD)

"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

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.