[packagekit] PATH missing in backends

James Bowes jbowes at dangerouslyinc.com
Mon Jan 7 05:50:59 PST 2008


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.

-James



More information about the PackageKit mailing list