[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: Clearenv not available in FreeBSD
From: Chris Rees <utisoft () gmail ! com>
Date: 2011-01-24 16:17:48
Message-ID: AANLkTimmai6G=Bp-Y31Xv+=PQiMS+3z8Dpi=E9oktCZp () mail ! gmail ! com
[Download RAW message or body]
On 24 January 2011 15:54, Denys Vlasenko <vda.linux@googlemail.com> wrote:
> On Sun, Jan 23, 2011 at 4:47 PM, Chris Rees <utisoft@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
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic