<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH] replace setenv() with putenv()



* On 2005.10.06, in <20051006181856.F3051@xxxxxxxxxxxxxxxxxxxxx>,
*       "Moritz Barsnick" <moritz+mutt@xxxxxxxxxxxx> wrote:
> 
> Are you sure all systems actually have putenv()? I know I had problems
> with the one or the other in old SunOS (Solaris). Usually there should
> be an autoconf check for it.

No, I'm not sure -- but all the systems I use do, and it is POSIX, which
is a reasonable baseline.  An autoconf check would be better, but I think
this is safe.

Solaris 5.9 has putenv() but not setenv(), for example.  (Solaris 5.10
does have setenv().)


> OTOH, I haven't checked whether mutt already uses putenv() in other
> places without alternatives, and whether these "old" systems are
> considered dying. ;-)

It had neither until this code was added recently.

-- 
 -D.    dgc@xxxxxxxxxxxx        NSIT    University of Chicago