Silently ignore all broken symbolic links

(cherry picked from commit 4741e1ed6bc2b10bfa3e608b18f2acad1fc9870a)
This commit is contained in:
Martin 2015-11-15 18:07:20 +01:00
parent b18d02f21e
commit 95f98b1020

View File

@ -101,6 +101,12 @@ std::vector<SFile> getFiles(const std::wstring &path, bool *has_error, bool foll
{
is_link=true;
rc=stat64((upath+dirp->d_name).c_str(), &f_info);
if(rc!=0 && errno==ENOENT)
{
//Ignore broken symlinks
continue;
}
}
if(rc==0)
{