diff --git a/src/libs/utils/environment.cpp b/src/libs/utils/environment.cpp index 87c17b6b560..908132fae84 100644 --- a/src/libs/utils/environment.cpp +++ b/src/libs/utils/environment.cpp @@ -183,6 +183,8 @@ bool Environment::isSameExecutable(const QString &exe1, const QString &exe2) con const FilePath f2 = FilePath::fromString(i2); if (f1 == f2) return true; + if (f1.needsDevice() != f2.needsDevice() || f1.scheme() != f2.scheme()) + return false; if (f1.resolveSymlinks() == f2.resolveSymlinks()) return true; if (FileUtils::fileId(f1) == FileUtils::fileId(f2))