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

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