Commit cf4538ca authored by Harald Sitter's avatar Harald Sitter
Browse files

resolve paths to their canonical representation

this resolves all symlinks along the way to reach the most canonical
representation of the path.

without this a symlink of your home you place on the desktop is a
strictly different path than your home since it is nested inside

BUG: 425678
FIXED-IN: 20.12
parent a2986e8f
......@@ -125,7 +125,8 @@ Q_SIGNALS:
KSambaShareData resolveShare(const QUrl &url)
const QString path = url.toLocalFile();
QFileInfo info(url.toLocalFile());
const QString path = info.canonicalFilePath();
const QList<KSambaShareData> shareList = KSambaShare::instance()->getSharesByPath(path);
if (!shareList.isEmpty()) {
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