[packagekit] PATH missing in backends
Thomas Wood
thomas at openedhand.com
Mon Jan 7 06:02:08 PST 2008
On Mon, 2008-01-07 at 08:59 -0500, Matthias Clasen wrote:
> On Jan 7, 2008 8:47 AM, Thomas Wood <thomas at openedhand.com> wrote:
> > Hi,
> >
> > Does anyone know why the PATH environment variable might be unavailable
> > to a PackageKit backend?
> >
> > Unfortunately libipkg tries to run 'strdup (getenv ("PATH"))', which
> > causes a segfault because getenv returns NULL.
>
> If you use g_strdup (getenv ("PATH")) you get NULL instead of a segfault.
Ipkg does not use glib.
Regards,
Thomas
--
OpenedHand Ltd.
Unit R Homesdale Business Center / 216-218 Homesdale Road /
Bromley / BR1 2QZ / UK Tel: +44 (0)20 8819 6559
Expert Open Source For Consumer Devices - http://o-hand.com/
------------------------------------------------------------
More information about the PackageKit
mailing list