Hello community,

here is the log from the commit of package libgnomesu for openSUSE:Factory 
checked in at 2015-02-06 22:37:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libgnomesu (Old)
 and      /work/SRC/openSUSE:Factory/.libgnomesu.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libgnomesu"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libgnomesu/libgnomesu.changes    2013-09-23 
15:24:46.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.libgnomesu.new/libgnomesu.changes       
2015-02-06 22:37:29.000000000 +0100
@@ -1,0 +2,11 @@
+Fri Feb  6 10:43:53 UTC 2015 - [email protected]
+
+- Add libgnomesu-set-xdg_runtime_dir.patch: explicitly set
+  XDG_RUNTIME_DIR for the new user (boo#908167).
+
+-------------------------------------------------------------------
+Thu Feb  5 07:10:43 UTC 2015 - [email protected]
+
+- Use rm -f to avoid rm asking back with strict umasks.
+
+-------------------------------------------------------------------

New:
----
  libgnomesu-set-xdg_runtime_dir.patch

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

Other differences:
------------------
++++++ libgnomesu.spec ++++++
--- /var/tmp/diff_new_pack.gbbN4a/_old  2015-02-06 22:37:30.000000000 +0100
+++ /var/tmp/diff_new_pack.gbbN4a/_new  2015-02-06 22:37:30.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libgnomesu
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -67,6 +67,8 @@
 Patch20:        libgnomesu-gtk3.patch
 # PATCH-FIX-UPSTREAM libgnomesu-suid_flags.patch bnc#743139 [email protected] 
-- Respect SUID_CFLAGS/SUID_LDFLAGS
 Patch21:        libgnomesu-suid_flags.patch
+# PATCH-FIX-OPENSUSE libgnomesu-set-xdg_runtime_dir.patch boo#908167 
[email protected] -- Properly rest XDG_RUNTIME_DIR to the new user
+Patch22:        libgnomesu-set-xdg_runtime_dir.patch
 BuildRequires:  fdupes
 BuildRequires:  gtk3-devel
 BuildRequires:  intltool
@@ -131,6 +133,7 @@
 %patch19 -p1
 %patch20 -p1
 %patch21 -p1
+%patch22 -p1
 cp -a %{S:1} pam-backend/gnomesu-pam
 # Upstream is dead, libgnomesu.po in LCN includes strings in our patches:
 translation-update-upstream
@@ -156,10 +159,10 @@
 mkdir -p %{buildroot}%{_docdir}/%{name}
 cp AUTHORS README NEWS ChangeLog doc/api.html doc/libgnomesu.css 
%{buildroot}%{_docdir}/%{name}
 # We want only PAM backend.
-rm %{buildroot}%{_prefix}/lib/%{name}/gnomesu-backend
+rm -f %{buildroot}%{_prefix}/lib/%{name}/gnomesu-backend
 # No support for old GNOME
 # FIXME: Transform it to .desktop file
-rm %{buildroot}%{_datadir}/application-registry/*.applications 
%{buildroot}%{_datadir}/mime-info/*.*
+rm -f %{buildroot}%{_datadir}/application-registry/*.applications 
%{buildroot}%{_datadir}/mime-info/*.*
 %fdupes %{buildroot}
 
 %clean

++++++ libgnomesu-set-xdg_runtime_dir.patch ++++++
Index: libgnomesu-1.0.0/su-backend/common.c
===================================================================
--- libgnomesu-1.0.0.orig/su-backend/common.c
+++ libgnomesu-1.0.0/su-backend/common.c
@@ -177,6 +177,9 @@ modify_environment (const struct passwd
        xputenv (concat ("USER", "=", pw->pw_name));
        xputenv (concat ("LOGNAME", "=", pw->pw_name));
 
+       /* set XDG_RUNTIME_DIR for the new user */
+       xputenv (g_strdup_printf("XDG_RUNTIME_DIR=/run/user/%d", pw->pw_uid));
+
        /* Sanity-check PATH. It shouldn't contain . entries! */
        path = g_getenv ("PATH");
        if (path && (strstr (path, ":.:") || strncmp (path, ".:", 2) == 0
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to