mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-24 03:31:07 +00:00
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:
parent
beb6aa41da
commit
3c69e3d802
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user