From 836b23e3a1a9d373da8e360330780c8f2172fe2a Mon Sep 17 00:00:00 2001 From: yunjia_w Date: Mon, 19 Dec 2022 20:45:43 +0800 Subject: [PATCH] fix core dump problem Signed-off-by: yunjia_w --- fix-core-dump-problem.patch | 25 +++++++++++++++++++++++++ polkit.spec | 6 +++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 fix-core-dump-problem.patch diff --git a/fix-core-dump-problem.patch b/fix-core-dump-problem.patch new file mode 100644 index 0000000..51f52e2 --- /dev/null +++ b/fix-core-dump-problem.patch @@ -0,0 +1,25 @@ +From 7a3d37507332ee57993ab0822dc111c448cd2401 Mon Sep 17 00:00:00 2001 +From: shenxiangwei +Date: Thu, 8 Dec 2022 09:07:43 +0800 +Subject: [PATCH] fix core dump problem + +--- + src/programs/pkcheck.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/programs/pkcheck.c b/src/programs/pkcheck.c +index 768525c..ea811b1 100644 +--- a/src/programs/pkcheck.c ++++ b/src/programs/pkcheck.c +@@ -554,7 +554,7 @@ main (int argc, char *argv[]) + { + g_printerr ("Error checking for authorization %s: %s\n", + action_id, +- error->message); ++ error ? error->message : ""); + ret = 127; + goto out; + } +-- +2.33.0 + diff --git a/polkit.spec b/polkit.spec index 5fbf4a8..1d61425 100644 --- a/polkit.spec +++ b/polkit.spec @@ -1,6 +1,6 @@ Name: polkit Version: 0.120 -Release: 7 +Release: 8 Summary: Define and Handle authorizations tool License: LGPLv2+ URL: http://www.freedesktop.org/wiki/Software/polkit @@ -12,6 +12,7 @@ Patch1: backport-CVE-2021-4034.patch Patch2: backport-CVE-2021-4115-GHSL-2021-077-fix.patch Patch3: backport-Added-support-for-duktape-as-JS-engine.patch Patch4: backport-build-Add-fallback-looking-for-duktape-s-library-and.patch +Patch5: fix-core-dump-problem.patch BuildRequires: gcc-c++ glib2-devel >= 2.30.0 expat-devel pam-devel gtk-doc intltool BuildRequires: gobject-introspection-devel systemd systemd-devel @@ -129,6 +130,9 @@ exit 0 %{_datadir}/man/man8/* %changelog +* Mon Dec 19 2022 wangyunjia - 0.120-8 +- fix core dump problem + * Fri Nov 11 2022 wangyu - 0.120-7 - remake even configure scripts and configuration headers that are newer than their input files -- Gitee