Re: [PATCH] Fix null environ crash in getenv() provided by lib/sh/getenv.c

2018-07-24 Thread Eric Blake
On 07/09/2018 09:16 AM, Chet Ramey wrote: On 7/8/18 7:21 AM, Keeley Hoek wrote: In running bash on an embedded target, bash crashes for the silly reason that environ is NULL. I haven't been able to tell whether this is actually permitted by the standard (as if?), but in bash I think this behavi

Re: [PATCH] Fix null environ crash in getenv() provided by lib/sh/getenv.c

2018-07-09 Thread Chet Ramey
On 7/8/18 7:21 AM, Keeley Hoek wrote: > In running bash on an embedded target, bash crashes for the silly > reason that environ is NULL. > > I haven't been able to tell whether this is actually permitted by the > standard (as if?), but in bash I think this behavior is inconsistent > anyway because