[packagekit] PATH missing in backends
jbowes at dangerouslyinc.com
Mon Jan 7 05:50:59 PST 2008
On Jan 7, 2008 8:47 AM, Thomas Wood <thomas at openedhand.com> wrote:
> 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.
More information about the PackageKit