This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug manual/16402] New: Missing case in execve(2) manpage
- From: "mdione at grulic dot org.ar" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 07 Jan 2014 10:28:17 +0000
- Subject: [Bug manual/16402] New: Missing case in execve(2) manpage
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16402
Bug ID: 16402
Summary: Missing case in execve(2) manpage
Product: glibc
Version: unspecified
Status: NEW
Severity: minor
Priority: P2
Component: manual
Assignee: unassigned at sourceware dot org
Reporter: mdione at grulic dot org.ar
CC: mtk.manpages at gmail dot com, roland at gnu dot org
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!
--
You are receiving this mail because:
You are on the CC list for the bug.