Subject: Re: execve call from Linux emul to NetBSD native problem ?
To: Christos Zoulas <christos@zoulas.com>
From: Vincent <10.50@free.fr>
List: tech-kern
Date: 11/25/2003 10:44:53
Christos,

I can propose this patch :

# diff rtld.c rtld.C

400a401
>        * Ignores NULL or "" environnements
402,404c403,412
<       dbg(("preloading objects"));
<       if (_rtld_trust && _rtld_preload(getenv("LD_PRELOAD")) == -1)
<               _rtld_die();
---
>       {
>           const char * preload = getenv ("LD_PRELOAD") ;
> 
>           if ((preload) && (* preload))
>           {
>               dbg(("preloading objects"));
>               if (_rtld_trust && _rtld_preload(preload) == -1)
>                   _rtld_die();
>           }
>       }