Subject: Re: kde2: bugfix for kdm
To: Berndt Josef Wulf <firstname.lastname@example.org>
From: Nick Hudson <email@example.com>
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,
> 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
aka firstname.lastname@example.org, email@example.com