Inconsistent handling of directory_options::skip_permission_denied
#77
Labels
available on master
Fix is done on master branch, issue closed on next release
bug
Something isn't working
macOS
macOS platform is affected
Milestone
Describe the bug
While testing the POSIX implementation of the
recursive_directory_iterator
on macOS, I found theskip_permission_denied
option to not work when iterating over my complete home directory hitting the~/Library/Application Support/MobileSync
folder. The increment still threw afilesystem_error
. The reason is not wrong permissions, but "System Integrety Protection". Theopendir
results in an EPERM and not EACESS, and while EPERM was added to the increment handling ofdirectory_iterator
it is missing from theopendir
error handling.To Reproduce
Just try to iterate over a macOS SIP protected folder.
Expected behavior
The iterator should not enter the protected folder but continue to scan next to it.
The text was updated successfully, but these errors were encountered: