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