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

fs: unix: dir: Ignore ENOENT when accessing directory content

This seems to happen on some devices, with folders ending with a
trailing dot
Fix https://trac.videolan.org/vlc/ticket/19909
parent 33a57a90
......@@ -82,6 +82,14 @@ void Directory::read() const
{
if ( errno == EACCES )
continue;
// some Android devices will list folder content, but will yield
// ENOENT when accessing those.
// See https://trac.videolan.org/vlc/ticket/19909
if ( errno == ENOENT )
{
LOG_WARN( "Ignoring unexpected ENOENT while listing folder content." );
continue;
}
// Ignore EOVERFLOW since we are not (yet?) interested in the file size
if ( errno != EOVERFLOW )
{
......
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