Commit 8d222da3 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

fs: unix: Dir: Ignore EOVERFLOW

parent 2acd12c7
......@@ -117,10 +117,14 @@ void Directory::read() const
{
if ( errno == EACCES )
continue;
std::string err( "Failed to get file info " );
err += path + ": ";
err += strerror(errno);
throw std::runtime_error( err );
// Ignore EOVERFLOW since we are not (yet?) interested in the file size
if ( errno != EOVERFLOW )
{
std::string err( "Failed to get file info " );
err += path + ": ";
err += strerror(errno);
throw std::runtime_error( err );
}
}
if ( S_ISDIR( s.st_mode ) )
{
......
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