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] New: Missing case in execve(2) manpage


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.


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