[packagekit] PATH missing in backends
Thomas Wood
thomas at openedhand.com
Mon Jan 7 06:03:58 PST 2008
On Mon, 2008-01-07 at 08:50 -0500, James Bowes wrote:
> Hi Thomas
>
> 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.
> >
> > Obviously there are several ways to work around this, but I just
> > wondered why PATH would be missing in the first place.
>
> IIRC, all the env vars are unset by pk_spawn for security's sake.
I guess that sort of makes sense, but unfortunately I have just
discovered the reason Ipkg needs PATH is because it spawns wget to
download packages...
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