This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5605] dirfd() SEGVs when passed NULL
- From: "steve at fisharerojo dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 14 Jan 2008 03:13:05 -0000
- Subject: [Bug libc/5605] dirfd() SEGVs when passed NULL
- References: <20080113152052.5605.steve@fisharerojo.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From steve at fisharerojo dot org 2008-01-14 03:13 -------
(In reply to comment #1)
> The argument must be a pointer to a valid directory stream.
...and if it isn't libc should SEGV. That seems very illogical. It would seem to make much more sense to
return -1 and set errno to EBADF.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
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.