public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/5605] New: dirfd() SEGVs when passed NULL
@ 2008-01-13 15:21 steve at fisharerojo dot org
  2008-01-13 15:59 ` [Bug libc/5605] " schwab at suse dot de
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: steve at fisharerojo dot org @ 2008-01-13 15:21 UTC (permalink / raw)
  To: glibc-bugs

The following example program SEGVs in dirfd() in libc.  Based on the manpage, it should be returning 
-1.

#include <sys/types.h>
#include <dirent.h>
#include <stdlib.h>

int
main() {
    int fd = dirfd(NULL);
}

-- 
           Summary: dirfd() SEGVs when passed NULL
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: steve at fisharerojo dot org
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=5605

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <bug-5605-131@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2014-07-02  7:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-13 15:21 [Bug libc/5605] New: dirfd() SEGVs when passed NULL steve at fisharerojo dot org
2008-01-13 15:59 ` [Bug libc/5605] " schwab at suse dot de
2008-01-14  3:13 ` steve at fisharerojo dot org
2008-01-14  3:17 ` roland at gnu dot org
     [not found] <bug-5605-131@http.sourceware.org/bugzilla/>
2014-07-02  7:50 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).