This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Problem with bug-readdir1
- From: Roland McGrath <roland at redhat dot com>
- To: Ian Wienand <ianw at gelato dot unsw dot edu dot au>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Tue, 3 Dec 2002 17:27:35 -0800
- Subject: Re: Problem with bug-readdir1
I'm not sure about that test. POSIX.1 does not require that readdir return
EBADF, it's an "if detected" error. No valid POSIX.1 program can pass a
bad argument to readdir. For any case but null, such as after you've
called closedir, it's as liable to crash as to notice it.