bug-gnulib
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]