mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
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>
|
||||
|
||||
* configure.host: Accept "arm*" host spec instead of just "arm".
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user