This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
A linux kernel bug
- To: drepper@cygnus.com (Ulrich Drepper)
- Subject: A linux kernel bug
- From: hjl@lucon.org (H.J. Lu)
- Date: Fri, 23 Oct 1998 12:20:29 -0700 (PDT)
- Cc: libc-hacker@cygnus.com (GNU C Library), linux-kernel@vger.rutgers.edu (linux kernel)
Here is a simple testcase for the Linux kernel bug. The problem is if
"foo" is an empty directory, the Linux kernel returns ENOTDIR, instead
of ENOENT. Can we fix it in Linux 2.2?
Thanks.
--
H.J. Lu (hjl@gnu.org)
----
#include <errno.h>
#include <unistd.h>
main ()
{
if (access ("foo/tmp/", F_OK) < 0)
perror ("access");
}