This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug manual/16402] Missing case in execve(2) manpage


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]