fix core dump problem

This commit is contained in:
shenxiangwei 2022-12-15 15:29:25 +08:00
parent facd01f170
commit 64c5316596
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 7a3d37507332ee57993ab0822dc111c448cd2401 Mon Sep 17 00:00:00 2001
From: shenxiangwei <shenxiangwei1@huawei.com>
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

View File

@ -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
@ -130,6 +131,9 @@ exit 0
%{_datadir}/man/man8/*
%changelog
* Thu Dec 15 2022 shenxiangwei <shenxiangwei1@huawei.com> - 0.120-8
- fix core dump problem
* Fri Nov 11 2022 wangyu <wangyu283@huawei.com> - 0.120-7
- remake even configure scripts and configuration headers that are newer than their input files