[Bug manual/16402] Missing case in execve(2) manpage
mtk.manpages at gmail dot com
sourceware-bugzilla@sourceware.org
Tue Jan 7 18:57:00 GMT 2014
https://sourceware.org/bugzilla/show_bug.cgi?id=16402
--- Comment #3 from Michael Kerrisk <mtk.manpages at gmail dot com> ---
(In reply to Marcos Dione from comment #0)
> The manpage for execve(2) correctly lists EFAULT as a possible error, but
> seems to omit the case when it's returned because one of the pointers in the
> list or array for argv is invalid. It happened to me that calling execl()
> with two literal strings and no NULL terminator returned this error
> sometimes. Example:
>
> #include <unistd.h>
>
> execl("/bin/ls", "ls");
>
> I know this is minor, but trying to fix the bug in my code I was misguided
> by the description in the manpage. It just seemed impossible!
I changed the man page text to:
EFAULT filename or one of the pointers in the vectors argv or
envp points outside your accessible address space.
Thanks for the report.
Cheers,
Michael
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list