[packagekit] PATH missing in backends

Matthias Clasen matthias.clasen at gmail.com
Mon Jan 7 05:59:52 PST 2008


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.



More information about the PackageKit mailing list