From 3c69e3d802ac95d99c82ca1425f79fa95a5702bb Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 2 Dec 2002 21:01:50 +0000 Subject: 2002-12-01 Roland McGrath * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition testing getdents64 return value. --- sysdeps/unix/sysv/linux/getdents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/getdents.c b/sysdeps/unix/sysv/linux/getdents.c index e5796c329c..daef5a518c 100644 --- a/sysdeps/unix/sysv/linux/getdents.c +++ b/sysdeps/unix/sysv/linux/getdents.c @@ -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) -- cgit v1.2.3