Commit c29d0d12 authored by Harald Sitter's avatar Harald Sitter 🏳🌈
Browse files

smb: make duplicate detection case-insensitive

this does cover more dupes and is more in line with how windows would
behave (what with it being case insensitive in general)

CCBUG: 422001
parent 55e47e71
......@@ -405,9 +405,14 @@ void SMBSlave::listDir(const QUrl &kurl)
discoverers << smbc;
auto appendDiscovery = [&](const Discovery::Ptr &discovery) {
if (discoveredNames.contains(discovery->udsName())) {
if (discoveredNames.contains(discovery->udsName(), Qt::CaseInsensitive)) {
// Not tracking hosts. Tracking hosts means **guessing** if foo.local
// and foo and foo.kio-discovery-wsd will actually resolve to the same
// IP address, which is tricky to do at best. In the interest of efficency
// I'd rather have the de-duplication requirement be that the name of
// two competing service discovery systems needs to be the same.
discoveredNames << discovery->udsName();
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