[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] progname: don't segfault when argv is NULL
From: |
Bruno Haible |
Subject: |
Re: [PATCH] progname: don't segfault when argv is NULL |
Date: |
Wed, 9 Dec 2009 18:36:38 +0100 |
User-agent: |
KMail/1.9.9 |
Jim Meyering wrote:
> The POSIX spec for execve says this about envp:
>
> The argument envp is an array of character pointers to null-terminated
> strings. These strings shall constitute the environment for the new
> process image. The envp array is terminated by a null pointer.
>
> which I seem to recall means (probably due to the definition of "array of
> strings") that it must be non-NULL.
Indeed. It would make sense to let Ulrich change the glibc declarations of
execve, fexecve, execvpe.
Bruno
- Re: [PATCH] progname: don't segfault when argv is NULL, (continued)
- Re: [PATCH] progname: don't segfault when argv is NULL, Jim Meyering, 2009/12/05
- Re: [PATCH] progname: don't segfault when argv is NULL, Jim Meyering, 2009/12/06
- __nonnull__ declarations, Bruno Haible, 2009/12/06
- Re: __nonnull__ declarations, Jim Meyering, 2009/12/07
- Re: __nonnull__ declarations, Bruno Haible, 2009/12/10
- Re: [PATCH] progname: don't segfault when argv is NULL, Bruno Haible, 2009/12/06
- Re: [PATCH] progname: don't segfault when argv is NULL, Jim Meyering, 2009/12/09
- Re: [PATCH] progname: don't segfault when argv is NULL,
Bruno Haible <=
- Re: [PATCH] progname: don't segfault when argv is NULL, Bruno Haible, 2009/12/09
- Re: [PATCH] progname: don't segfault when argv is NULL, Jim Meyering, 2009/12/09