From 34dcae5481240b5b966c099f1cdb10f976c1ac8a Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 12 Jun 2008 10:11:21 +0000 Subject: [PATCH] Fix text that warns against use of NULL argv and envp. Using a NULL envp does in fact seem to be portable (works on Solaris and FreeBSD), but the Linux semantics for a NULL argv certainly aren't consistent with other implementations. See http://bugzilla.kernel.org/show_bug.cgi?id=8408. --- man2/execve.2 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/man2/execve.2 b/man2/execve.2 index fbdc3747d..83882a288 100644 --- a/man2/execve.2 +++ b/man2/execve.2 @@ -467,14 +467,13 @@ are used to delimit the arguments. On Linux, .I argv -and -.I envp can be specified as NULL, -which has the same effect as specifying these arguments -as pointers to lists containing a single NULL pointer. +which has the same effect as specifying this argument +as a pointer to a list containing a single NULL pointer. .B "Do not take advantage of this misfeature!" It is non-standard and non-portable: -on most other Unix systems doing this will result in an error. +on most other Unix systems doing this will result in an error +.RB ( EFAULT ). .\" e.g., EFAULT on Solaris 8 and FreeBSD 6.1; but .\" HP-UX 11 is like Linux -- mtk, Apr 2007 .\" FIXME .