mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 16:39:43 -05:00
fixed sharing of sshfs mounted dirs by allowing files of type DT_UNKNOWN to be explored
This commit is contained in:
parent
b82a18ee64
commit
8bdf4f3dad
@ -124,9 +124,9 @@ bool FolderIterator::updateFileInfo(bool& should_skip)
|
|||||||
return true ;
|
return true ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if( ent->d_type != DT_DIR && ent->d_type != DT_REG)
|
else if( ent->d_type != DT_DIR && ent->d_type != DT_REG && ent->d_type != DT_UNKNOWN) // DT_UNKNOWN is reported by mounted dirs, by services such as sshfs.
|
||||||
{
|
{
|
||||||
std::cerr << "(II) Skipping file of unknown type " << ent->d_type << ": " << mFullPath << std::endl;
|
std::cerr << "(II) Skipping file of unknown type " << std::dec << (int)ent->d_type << std::dec << ": " << mFullPath << std::endl;
|
||||||
should_skip = true ;
|
should_skip = true ;
|
||||||
return true ;
|
return true ;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user