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 libc/5605] dirfd() SEGVs when passed NULL


------- 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.


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