From 67684d8aa6aab727fd2a0d511d51f4e5ab477bf5 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 30 Mar 2021 09:19:59 -0400 Subject: [PATCH] import dconf-0.28.0-4.el8 --- SOURCES/dconf-0.28.0-permissions.patch | 31 ++++++++++++++++++++++++++ SPECS/dconf.spec | 7 +++++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 SOURCES/dconf-0.28.0-permissions.patch diff --git a/SOURCES/dconf-0.28.0-permissions.patch b/SOURCES/dconf-0.28.0-permissions.patch new file mode 100644 index 0000000..151b790 --- /dev/null +++ b/SOURCES/dconf-0.28.0-permissions.patch @@ -0,0 +1,31 @@ +--- a/gvdb/gvdb-builder.c ++++ b/gvdb/gvdb-builder.c +@@ -21,6 +21,7 @@ + #include "gvdb-format.h" + + #include ++#include + #include + #if !defined(G_OS_WIN32) || !defined(_MSC_VER) + #include +@@ -509,13 +510,20 @@ gvdb_table_write_contents (GHashTable *table, + gboolean status; + FileBuilder *fb; + GString *str; ++ GStatBuf buf; ++ gint stat_ret; + + fb = file_builder_new (byteswap); + file_builder_add_hash (fb, table, &root); + str = file_builder_serialise (fb, root); + ++ stat_ret = g_stat (filename, &buf); ++ + status = g_file_set_contents (filename, str->str, str->len, error); + g_string_free (str, TRUE); + ++ if (stat_ret == 0) ++ g_chmod (filename, buf.st_mode); ++ + return status; + } diff --git a/SPECS/dconf.spec b/SPECS/dconf.spec index ed00543..89b3554 100644 --- a/SPECS/dconf.spec +++ b/SPECS/dconf.spec @@ -2,7 +2,7 @@ Name: dconf Version: 0.28.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A configuration system License: LGPLv2+ and GPLv2+ and GPLv3+ @@ -17,6 +17,7 @@ Patch4: 0003-Engine-add-g_debug-statements-in-state-changing-inte.patch Patch5: 0004-Engine-Add-locks-around-access-to-subscription-count.patch Patch6: 0005-Engine-Add-comprehensive-unit-tests-for-subscription.patch Patch7: 0001-Engine-Change-overflow-thresholds-in-subscription-co.patch +Patch8: dconf-0.28.0-permissions.patch BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: gtk-doc @@ -96,6 +97,10 @@ dconf update %{_datadir}/vala %changelog +* Mon Nov 23 2020 Marek Kasik - 0.28.0-4 +- Restore permissions on updated database +- Resolves: #1879722 + * Fri Jan 18 2019 Olivier Fourdan - 0.28.0-3 - Backport fix for emission of spurious changed signals - for all keys at once crashing gnome-shell