Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package dconf for openSUSE:Factory checked 
in at 2022-09-21 14:39:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dconf (Old)
 and      /work/SRC/openSUSE:Factory/.dconf.new.2083 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dconf"

Wed Sep 21 14:39:47 2022 rev:54 rq:1003235 version:0.40.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/dconf/dconf.changes      2021-04-12 
12:37:37.341387248 +0200
+++ /work/SRC/openSUSE:Factory/.dconf.new.2083/dconf.changes    2022-09-21 
14:40:09.969377847 +0200
@@ -1,0 +2,7 @@
+Tue Sep 13 06:33:51 UTC 2022 - Yifan Jiang <[email protected]>
+
+- Bring back 0001-gvdb-Restore-permissions-on-changed-files.patch
+  since the useful fix was never merged to upstream (bsc#971074
+  bgo#758066 bsc#1203344).
+
+-------------------------------------------------------------------

New:
----
  0001-gvdb-Restore-permissions-on-changed-files.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ dconf.spec ++++++
--- /var/tmp/diff_new_pack.IMWuZI/_old  2022-09-21 14:40:10.549379455 +0200
+++ /var/tmp/diff_new_pack.IMWuZI/_new  2022-09-21 14:40:10.553379466 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package dconf
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,8 @@
 URL:            https://live.gnome.org/dconf
 Source0:        
https://download.gnome.org/sources/dconf/0.40/%{name}-%{version}.tar.xz
 Source99:       baselibs.conf
+# PATCH-FIX-UPSTREAM 0001-gvdb-Restore-permissions-on-changed-files.patch 
bsc#971074 bgo#758066 bsc#1203344 [email protected] -- Restore permissions on 
files changed by dconf update.
+Patch0:         0001-gvdb-Restore-permissions-on-changed-files.patch
 BuildRequires:  docbook-xsl-stylesheets
 BuildRequires:  gtk-doc
 BuildRequires:  meson

++++++ 0001-gvdb-Restore-permissions-on-changed-files.patch ++++++
diff --git a/gvdb/gvdb-builder.c b/gvdb/gvdb-builder.c
index 90ea50b..cf5f1f4 100644
--- a/gvdb/gvdb-builder.c
+++ b/gvdb/gvdb-builder.c
@@ -21,6 +21,7 @@
 #include "gvdb-format.h"
 
 #include <glib.h>
+#include <glib/gstdio.h>
 #include <fcntl.h>
 #if !defined(G_OS_WIN32) || !defined(_MSC_VER)
 #include <unistd.h>
@@ -509,13 +510,22 @@ 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);
+  else
+    g_chmod (filename, 0644);
+
   return status;
 }

Reply via email to