OSDN Git Service
(root)
/
uclinux-h8
/
uclibc-ng.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4644758
)
also fix bug 1012 by moschny in 64bit version of readdir
author
Mike Frysinger
<vapier@gentoo.org>
Sat, 15 Sep 2007 09:24:42 +0000
(09:24 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Sat, 15 Sep 2007 09:24:42 +0000
(09:24 -0000)
libc/misc/dirent/readdir64_r.c
patch
|
blob
|
history
diff --git
a/libc/misc/dirent/readdir64_r.c
b/libc/misc/dirent/readdir64_r.c
index
23fd8f6
..
19c1449
100644
(file)
--- a/
libc/misc/dirent/readdir64_r.c
+++ b/
libc/misc/dirent/readdir64_r.c
@@
-37,7
+37,7
@@
int readdir64_r(DIR *dir, struct dirent64 *entry, struct dirent64 **result)
bytes = __getdents64(dir->dd_fd, dir->dd_buf, dir->dd_max);
if (bytes <= 0) {
*result = NULL;
- ret = errno;
+ ret =
(bytes==0)? 0 :
errno;
goto all_done;
}
dir->dd_size = bytes;