-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not iterate through directory entries on Android #72
Comments
The cause of this issue seems to be buggy If using an old Android NDK without Unified Headers, the issue does not happen, because |
Applying patch #68 fixes the issue. |
This is an explicit fix for this bug: boostorg#72 Android developers recommend using readdir instead of readdir_r as it is already thread-safe: http://elliotth.blogspot.com/2012/10/how-not-to-use-readdirr3.html
The same issue is also reported on the Boost's Trac: There, another patch is proposed for the fix: I think, both #68 and @webmaster128 and @rcdailey, you may find it useful that #68 also fixes this issue. |
Pull request #51 implements exactly errno resetting in 2 places and also fixes this issue. |
How will we know which version of Boost this fix becomes available in? |
The issue has been fixed by merging #51 in. |
Prerequisites
How to reproduce
Compile the following sample code as Android executable.
Copy the resulting executable to the device and run it:
Expected behavior
All directory entries are listed, for example:
Actual behavior
boost::filesystem::filesystem_error
is thrown on the second iteration of the loop:The text was updated successfully, but these errors were encountered: