boostorg/filesystem

directory_iterator is broken for smb1 locations on windows

chrisdecker08 opened this issue · 4 comments

directory is a smb1 location, either a mapped network drive or UNC path

bool isDir = fs::is_directory(directory); <- Works
fs::directory_iterator iter(directory); <- throws an exception

The exception seems to originate at directory.cpp:842 with an error code of 124 (ERROR_INVALID_LEVEL)

Could you test if fcc1bf3 fixes the problem for you?

This works for me locally, let me get a test build including this patch out to some users in order to do the final verification.

This seems to work for our users. There appear to be some users with miscellaneous issues not related to smbv1, however I hesitate to file any bugs unless we can reproduce or at least establish a pattern.

Ok, thanks for the report and testing.