Clearenv not available in FreeBSD
Chris Rees
utisoft at gmail.com
Mon Jan 24 16:17:48 UTC 2011
On 24 January 2011 15:54, Denys Vlasenko <vda.linux at googlemail.com> wrote:
> On Sun, Jan 23, 2011 at 4:47 PM, Chris Rees <utisoft at gmail.com> wrote:
>> Hi again,
>>
>> OK I lied about the previous being the last today, sorry.
>>
>> http://www.bayofrum.net/~chris/patches/busybox-clearenv.patch
>
> +#ifndef HAVE_CLEARENV
> +# define clearenv() environ[0] == NULL
> +#endif
>
> Shouldn't it be = instead of == ?
Indeed it should be, and I've also discovered it'd be better as:
# define clearenv() environ = NULL
http://www.kernel.org/doc/man-pages/online/pages/man3/clearenv.3.html
Sorry, don't know what I was thinking!
Chris
More information about the busybox
mailing list