aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-12-02 21:01:50 +0000
committerRoland McGrath <roland@gnu.org>2002-12-02 21:01:50 +0000
commit3c69e3d802ac95d99c82ca1425f79fa95a5702bb (patch)
tree80563e578edebdb671bfa921b7883e44ee105824 /sysdeps/unix
parentbeb6aa41dad64f2cb6b14b97715e2d0969d4093e (diff)
downloadglibc-3c69e3d802ac95d99c82ca1425f79fa95a5702bb.tar
glibc-3c69e3d802ac95d99c82ca1425f79fa95a5702bb.tar.gz
glibc-3c69e3d802ac95d99c82ca1425f79fa95a5702bb.tar.bz2
glibc-3c69e3d802ac95d99c82ca1425f79fa95a5702bb.zip
2002-12-01 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition testing getdents64 return value.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/getdents.c2
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)