bug in sendmail thaw routine on 11's

crl at CS-Mordred.UUCP crl at CS-Mordred.UUCP
Sat Jan 21 02:07:39 AEST 1984


We recently brought up sendmail (from a 4.2 BSD system) on a pdp-11 running
2.8 BSD.  There is a problem in the thaw() routine.  On Vaxen, the global
variable environ is in initialized data, and in 2.8 BSD, it is in BSS.
Sendmail's frozen configuration file is implemented by writing out from
&edata (end of initialized data) to the end of non-stack space.  Therefore,
environ is overwritten on thawing.  This lead to some users not being able
to send mail because the evironment passed through execv() was garbage
and an "argument list too big" sys error was returned.  I fixed it by 
saving environ at the beginning of thaw() in main.c and restoring it
after the second read().

Charles LaBrec
UUCP:		pur-ee!Physics:crl, purdue!Physics:crl
INTERNET:	crl @ pur-phy.UUCP



More information about the Comp.bugs.4bsd.ucb-fixes mailing list