mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
Silently ignore all broken symbolic links
(cherry picked from commit 4741e1ed6bc2b10bfa3e608b18f2acad1fc9870a)
This commit is contained in:
parent
b18d02f21e
commit
95f98b1020
@ -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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user