Subject: Re: kde2: bugfix for kdm
To: Ingolf Steinbach <ingolf@jellonet.de>
From: Berndt Josef Wulf <wulf@ping.net.au>
List: tech-pkg
Date: 01/04/2001 09:19:52
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.
Tschuess Berndt
--
Name : Berndt Josef Wulf | +++ With BSD on Packet Radio +++
E-Mail : wulf@ping.net.au | tfkiss, tnt, dpbox, wampes
ICQ : 18196098 | VK5ABN, Nairne, South Australia
URL : http://www.ping.net.au/~wulf | MBOX : vk5abn@vk5abn.#lmr.#sa.au.oc
Sysinfo : DEC AXPpci33+, NetBSD-1.4.2 | BBS : vk5abn.#lmr.#sa.aus.oc