diff --git a/man2/execve.2 b/man2/execve.2 index af5fd1585..739cf761c 100644 --- a/man2/execve.2 +++ b/man2/execve.2 @@ -324,6 +324,23 @@ successfully. A maximum line length of 127 characters is allowed for the first line in a #! executable shell script. + +On Linux, +.I argv +and +.I envp +can be specified as NULL, +which has the same effect has specifying these arguments +as pointers to lists containing a single NULL pointer. +.BR "Do not take advantage of this feature!" +It is non-standard and non-portable: +on most other Unix systems doing this will result in an error. +.\" e.g. EFAULT on Solaris 8 and FreeBSD 6.1; but +.\" HP-UX 11 is like Linux -- mtk, Apr 2007 +.\" FIXME . +.\" Bug filed 30 Apr 2007: http://bugzilla.kernel.org/show_bug.cgi?id=8408 +.\" Maybe this will get fixed (but it would coinstitute an ABI change). +.\" .\" .SH BUGS .\" Some Linux versions have failed to check permissions on ELF .\" interpreters. This is a security hole, because it allows users to