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:
Jeff Johnston 2012-03-02 16:02:04 +00:00
parent 2e398e8437
commit 52cbb05cfb
2 changed files with 6 additions and 1 deletions

View File

@ -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>
* configure.host: Accept "arm*" host spec instead of just "arm".

View File

@ -76,7 +76,7 @@ struct dirent *tmpdp;
__lock_release_recursive(dirp->dd_lock);
#endif
*dpp = NULL;
return errno;
return dirp->dd_size == 0 ? 0 : errno;
}
}
if (dirp->dd_loc >= dirp->dd_size) {