2012-03-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/posix/readdir_r.c: Fix return code when end of directory is reached.
This commit is contained in:
parent
2e398e8437
commit
52cbb05cfb
|
@ -1,3 +1,8 @@
|
||||||
|
2012-03-02 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
|
* libc/posix/readdir_r.c: Fix return code when end of
|
||||||
|
directory is reached.
|
||||||
|
|
||||||
2012-02-23 Dan Egnor <egnor@ofb.net>
|
2012-02-23 Dan Egnor <egnor@ofb.net>
|
||||||
|
|
||||||
* configure.host: Accept "arm*" host spec instead of just "arm".
|
* configure.host: Accept "arm*" host spec instead of just "arm".
|
||||||
|
|
|
@ -76,7 +76,7 @@ struct dirent *tmpdp;
|
||||||
__lock_release_recursive(dirp->dd_lock);
|
__lock_release_recursive(dirp->dd_lock);
|
||||||
#endif
|
#endif
|
||||||
*dpp = NULL;
|
*dpp = NULL;
|
||||||
return errno;
|
return dirp->dd_size == 0 ? 0 : errno;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (dirp->dd_loc >= dirp->dd_size) {
|
if (dirp->dd_loc >= dirp->dd_size) {
|
||||||
|
|
Loading…
Reference in New Issue