Subject: Re: kde2: bugfix for kdm
To: Berndt Josef Wulf <wulf@ping.net.au>
From: Nick Hudson <nick@nthcliff.demon.co.uk>
List: tech-pkg
Date: 01/04/2001 09:04:44
Berndt Josef Wulf wrote:
> 
> 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.
> >
> 
> Hallo Ingolf,
> 
> FYI:
> Applied your patch but it still won't work for me. I always comes back
> to itself after login attempts.

This is because (I think) Xsession cannot find startkde. Adding
/usr/X11R6/bin to PATH helps - not sure though if this is the best
solution.

Nick
-- 
aka skrll@netbsd.org, skrll@excite.co.uk