A linux kernel bug

H.J. Lu hjl@lucon.org
Fri Oct 23 12:20:00 GMT 1998


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");
}



More information about the Libc-hacker mailing list