projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
beb6aa4
)
2002-12-01 Roland McGrath <roland@redhat.com>
author
Roland McGrath
<roland@gnu.org>
Mon, 2 Dec 2002 21:01:50 +0000
(21:01 +0000)
committer
Roland McGrath
<roland@gnu.org>
Mon, 2 Dec 2002 21:01:50 +0000
(21:01 +0000)
* sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Fix condition
testing getdents64 return value.
sysdeps/unix/sysv/linux/getdents.c
patch
|
blob
|
history
diff --git
a/sysdeps/unix/sysv/linux/getdents.c
b/sysdeps/unix/sysv/linux/getdents.c
index
e5796c3
..
daef5a5
100644
(file)
--- 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)