Blame SOURCES/qtbase-do-not-load-plugin-from-pwd.patch

09caf3
From bf131e8d2181b3404f5293546ed390999f760404 Mon Sep 17 00:00:00 2001
09caf3
From: Olivier Goffart <ogoffart@woboq.com>
09caf3
Date: Fri, 8 Nov 2019 11:30:40 +0100
09caf3
Subject: Do not load plugin from the $PWD
09caf3
09caf3
I see no reason why this would make sense to look for plugins in the current
09caf3
directory. And when there are plugins there, it may actually be wrong
09caf3
09caf3
Change-Id: I5f5aa168021fedddafce90effde0d5762cd0c4c5
09caf3
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
09caf3
---
09caf3
 src/corelib/plugin/qpluginloader.cpp | 1 -
09caf3
 1 file changed, 1 deletion(-)
09caf3
09caf3
diff --git a/src/corelib/plugin/qpluginloader.cpp b/src/corelib/plugin/qpluginloader.cpp
09caf3
index cadff4f32b..c2443dbdda 100644
09caf3
--- a/src/corelib/plugin/qpluginloader.cpp
09caf3
+++ b/src/corelib/plugin/qpluginloader.cpp
09caf3
@@ -305,7 +305,6 @@ static QString locatePlugin(const QString& fileName)
09caf3
         paths.append(fileName.left(slash)); // don't include the '/'
09caf3
     } else {
09caf3
         paths = QCoreApplication::libraryPaths();
09caf3
-        paths.prepend(QStringLiteral(".")); // search in current dir first
09caf3
     }
09caf3
09caf3
     for (const QString &path : qAsConst(paths)) {
09caf3
--
09caf3
cgit v1.2.1