diff options
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/getdents.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |