0003-Do-not-load-plugin-from-the-PWD.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. From bf131e8d2181b3404f5293546ed390999f760404 Mon Sep 17 00:00:00 2001
  2. From: Olivier Goffart <ogoffart@woboq.com>
  3. Date: Fri, 8 Nov 2019 11:30:40 +0100
  4. Subject: [PATCH] Do not load plugin from the $PWD
  5. I see no reason why this would make sense to look for plugins in the current
  6. directory. And when there are plugins there, it may actually be wrong
  7. Change-Id: I5f5aa168021fedddafce90effde0d5762cd0c4c5
  8. Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
  9. Upstream: https://code.qt.io/cgit/qt/qtbase.git/commit/?id=bf131e8d2181b3404f5293546ed390999f760404
  10. Signed-off-by: Peter Seiderer <ps.report@gmx.net>
  11. ---
  12. src/corelib/plugin/qpluginloader.cpp | 1 -
  13. 1 file changed, 1 deletion(-)
  14. diff --git a/src/corelib/plugin/qpluginloader.cpp b/src/corelib/plugin/qpluginloader.cpp
  15. index cadff4f32b..c2443dbdda 100644
  16. --- a/src/corelib/plugin/qpluginloader.cpp
  17. +++ b/src/corelib/plugin/qpluginloader.cpp
  18. @@ -305,7 +305,6 @@ static QString locatePlugin(const QString& fileName)
  19. paths.append(fileName.left(slash)); // don't include the '/'
  20. } else {
  21. paths = QCoreApplication::libraryPaths();
  22. - paths.prepend(QStringLiteral(".")); // search in current dir first
  23. }
  24. for (const QString &path : qAsConst(paths)) {
  25. --
  26. 2.25.0