Commit Graph

9 Commits

Author SHA1 Message Date
charnier
f9f40e173c add FBSDID 2003-07-06 12:44:11 +00:00
alfred
a5526fd84b de-__P() 2002-07-11 18:31:16 +00:00
dd
13fe88b359 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
2001-08-09 06:20:18 +00:00
paul
7c6849b5ff 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.
2001-06-04 04:22:57 +00:00
charnier
bbfad4c71a Do not add progname in err() strings, it will be printed twice 2000-05-28 15:02:26 +00:00
imp
1ab3ae1a3e 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 :-)
2000-01-10 03:20:13 +00:00
imp
4ae587d156 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.
2000-01-10 01:25:53 +00:00
peter
59e473efb9 Make mailwrapper build 1999-12-29 17:51:22 +00:00
peter
c565292166 Import NetBSD's mailwrapper to redirect /usr/sbin/sendmail to the user's
chosen mailer.

Obtained from: NetBSD
1999-12-19 13:50:37 +00:00