Re: Environment handling broken in /bin/sh with changes to t,set,put}env()

From: Andrey Chernov <ache_at_nagual.pp.ru>
Date: Sat, 14 Jul 2007 05:43:20 +0400
On Fri, Jul 13, 2007 at 08:10:33PM -0500, Sean C. Farley wrote:
>> It ends up with environ = NULL; because envVarsTotal initialized to 0
>> i.e.  makes from "environ[0] == NULL" case "environ == NULL" case
>> which is different thing.
> 
> I changed it to return (0) if either environ or environ[0] equal NULL.
> The SaveEnviron label is removed as well as the (envVarsTotal > 0)
> check.

Looks OK.

-- 
http://ache.pp.ru/
Received on Fri Jul 13 2007 - 23:43:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:14 UTC