This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug manual/16402] Missing case in execve(2) manpage
- From: "mtk.manpages at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 07 Jan 2014 18:57:38 +0000
- Subject: [Bug manual/16402] Missing case in execve(2) manpage
- Auto-submitted: auto-generated
- References: <bug-16402-131 at http dot sourceware dot org/bugzilla/>
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.