"env -" segfaults

Denys Vlasenko vda.linux at googlemail.com
Thu Nov 12 13:54:59 UTC 2009


On Thu, Nov 12, 2009 at 2:27 PM, Vladimir Dronnikov <dronnikov at gmail.com> wrote:
> Line 87 of env.c should be
>
>        for (ep = environ; ep && *ep; ep++) {
>
> instead of
>
>        for (ep = environ; *ep; ep++) {
>
> or plain "env -" segfaults.

Fixed now, thanks.

> Also, wonder how one can clear current environment within a shell script?

Using export -n or unset?

--
vda


More information about the busybox mailing list