This is the mail archive of the libc-hacker@sourceware.cygnus.com 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]

A linux kernel bug


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


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