Merge branch 'v0.21.x' into master

This commit is contained in:
Max Kellermann
2020-09-17 14:43:05 +02:00
6 changed files with 82 additions and 46 deletions

View File

@@ -151,11 +151,9 @@ SmbclientStorage::OpenDirectory(std::string_view uri_utf8)
gcc_pure
static bool
SkipNameFS(const char *name) noexcept
SkipNameFS(PathTraitsFS::const_pointer name) noexcept
{
return name[0] == '.' &&
(name[1] == 0 ||
(name[1] == '.' && name[2] == 0));
return PathTraitsFS::IsSpecialFilename(name);
}
SmbclientDirectoryReader::~SmbclientDirectoryReader()