Subject: Re: kde2: bugfix for kdm
To: Ingolf Steinbach <ingolf@jellonet.de>
From: Nick Hudson <nick@nthcliff.demon.co.uk>
List: tech-pkg
Date: 01/03/2001 14:25:03
Ingolf Steinbach wrote:
>
> Hi,
>
> while trying Nick's KDE2 packages, I have found a bug in
> kdm/server.c (from kdebase):
>
> The StartClient() function calls setusercontext() which
> manipulates the process environment (e.g. sets the PATH
> variable). This process environment has previously been
> set to an array created on the *stack*.
>
> setusercontext() calls setenv() which may need to enlarge
> the process environment via realloc() (and it really does
> so!) which fails as the environment was not allocated on
> the heap.
>
> The attached patch file seems to fix the problem.
I've also just tracked down this problem to setusercontext. :-{
I'll add your patch to my pkgs.
Thanks,
Nick
--
aka skrll@netbsd.org, skrll@excite.co.uk