Notification time stamped 2023-09-30 21:09:04 UTC
From 5e8ebe4ff7fcfa82b9b42b05705fbbbabc28cc55 Mon Sep 17 00:00:00 2001
From: Alessandro Astone <ales.astone(a)gmail.com>
Date: Sep 18 2023 17:05:54 +0000
Subject: Add upstream patch to fix Okular crashes
---
diff --git a/1414.patch b/1414.patch
new file mode 100644
index 0000000..dcda1cf
--- /dev/null
+++ b/1414.patch
@@ -0,0 +1,28 @@
+From 48322f44323a1fc09305d66d9093fe6c3780709e Mon Sep 17 00:00:00 2001
+From: Kevin Ottens <kevin.ottens(a)enioka.com>
+Date: Fri, 15 Sep 2023 09:45:58 +0200
+Subject: [PATCH] Don't crash if KMountPoint gives nothing back while checking
+ for CIFS
+
+BUG: 474451
+---
+ src/ioslaves/file/file_unix.cpp | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/ioslaves/file/file_unix.cpp b/src/ioslaves/file/file_unix.cpp
+index 87c47e7e74..c0bc64354d 100644
+--- a/src/ioslaves/file/file_unix.cpp
++++ b/src/ioslaves/file/file_unix.cpp
+@@ -328,6 +328,9 @@ inline static time_t stat_mtime(const QT_STATBUF &buf)
+ static bool isOnCifsMount(const QString &filePath)
+ {
+ const auto mount = KMountPoint::currentMountPoints().findByPath(filePath);
++ if (!mount) {
++ return false;
++ }
+ return mount->mountType() == QStringLiteral("cifs") ||
mount->mountType() == QStringLiteral("smb3");
+ }
+
+--
+GitLab
+
diff --git a/kf5-kio.spec b/kf5-kio.spec
index 4cbcdba..33d53f8 100644
--- a/kf5-kio.spec
+++ b/kf5-kio.spec
@@ -2,7 +2,7 @@
Name: kf5-%{framework}
Version: 5.110.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: KDE Frameworks 5 Tier 3 solution for filesystem abstraction
License: GPLv2+ and MIT and BSD
@@ -13,6 +13,8 @@ URL:
https://invent.kde.org/frameworks/%{framework}
Source0:
http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{ver...
## upstream patches (lookaside)
+#
https://invent.kde.org/frameworks/kio/-/merge_requests/1414
+Patch0: 1414.patch
## upstreamable patches
@@ -286,6 +288,9 @@ KIONTLM provides support for NTLM authentication mechanism in KIO
%{_kf5_libdir}/cmake/KF5KIO/
%changelog
+* Mon Sep 18 2023 Alessandro Astone <ales.astone(a)gmail.com> - 5.110.0-2
+- Add upstream patch to fix Okular crashes
+
* Tue Sep 05 2023 Marc Deop i Argemí <marcdeop(a)fedoraproject.org> - 5.110.0-1
- 5.110.0
https://src.fedoraproject.org/rpms/kf5-kio/c/5e8ebe4ff7fcfa82b9b42b05705f...