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

smb: do not allow getting freespace info for pseudo urls

they won't resolve to anything and needlessly waste energy. they also
spam logs for no good reason
parent e1338bb3
......@@ -670,6 +670,10 @@ void SMBSlave::listDir(const QUrl &kurl)
void SMBSlave::fileSystemFreeSpace(const QUrl &url)
if ("kio-discovery-wsd")) {
error(KIO::ERR_UNKNOWN_HOST, url.url());
qCDebug(KIO_SMB_LOG) << url;
// Avoid crashing in smbc_fstatvfs below when
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