public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6aa03ff
)
readdir: don't loop on error
author
Alan Cox
<alan@linux.intel.com>
Thu, 4 Jun 2015 17:11:29 +0000
(18:11 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Thu, 4 Jun 2015 17:11:29 +0000
(18:11 +0100)
Library/libs/readdir.c
patch
|
blob
|
history
diff --git
a/Library/libs/readdir.c
b/Library/libs/readdir.c
index
a25c273
..
924e663
100644
(file)
--- a/
Library/libs/readdir.c
+++ b/
Library/libs/readdir.c
@@
-13,7
+13,7
@@
static struct __dirent *dnext(struct _dir *dir)
{
if (dir->next == dir->last) {
int l = read(dir->d.dd_fd, dir->buf, sizeof(dir->buf));
- if (l
=
= 0)
+ if (l
<
= 0)
return NULL;
l /= 32;
dir->last = l;