Commit d55104d6 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

fs: unix: discovery: Silently ignore access denied errors

parent c4c5a68f
......@@ -119,8 +119,10 @@ void Directory::read()
struct stat s;
if ( lstat( path.c_str(), &s ) != 0 )
{
if ( errno == EACCES )
continue;
std::string err( "Failed to get file info " );
err += path;
err += path + ": ";
err += strerror(errno);
throw std::runtime_error( err );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment