2002-12-01 Roland McGrath <roland@redhat.com>

* sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
	testing getdents64 return value.
This commit is contained in:
Roland McGrath 2002-12-02 21:01:50 +00:00
parent beb6aa41da
commit 3c69e3d802

View File

@ -126,7 +126,7 @@ __GETDENTS (int fd, char *buf, size_t nbytes)
retval = INLINE_SYSCALL (getdents64, 3, fd, CHECK_N(kbuf, kbytes),
kbytes);
# ifndef __ASSUME_GETDENTS64_SYSCALL
if (retval != -1 && errno != -EINVAL)
if (retval != -1 || errno != EINVAL)
# endif
{
const size_t size_diff = (offsetof (struct kernel_dirent64, d_name)