[Bug libc/5605] dirfd() SEGVs when passed NULL
steve at fisharerojo dot org
sourceware-bugzilla@sourceware.org
Mon Jan 14 03:13:00 GMT 2008
------- 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.
More information about the Glibc-bugs
mailing list