Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package accountsservice for openSUSE:Factory 
checked in at 2023-06-24 20:13:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/accountsservice (Old)
 and      /work/SRC/openSUSE:Factory/.accountsservice.new.15902 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "accountsservice"

Sat Jun 24 20:13:40 2023 rev:83 rq:1095051 version:23.13.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/accountsservice/accountsservice.changes  
2023-06-23 21:52:14.806500835 +0200
+++ 
/work/SRC/openSUSE:Factory/.accountsservice.new.15902/accountsservice.changes   
    2023-06-24 20:13:57.252148132 +0200
@@ -1,0 +2,8 @@
+Sat Jun 24 10:36:17 UTC 2023 - Dominique Leuenberger <dims...@opensuse.org>
+
+- Add accountsservice-assume-gdm.patch: assume gdm when not being
+  able to detect the used display manager. This is basically the
+  same as was in place before we gained support for multiple DMs
+  (boo#1212675).
+
+-------------------------------------------------------------------

New:
----
  accountsservice-assume-gdm.patch

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

Other differences:
------------------
++++++ accountsservice.spec ++++++
--- /var/tmp/diff_new_pack.tMhkTS/_old  2023-06-24 20:13:57.952152265 +0200
+++ /var/tmp/diff_new_pack.tMhkTS/_new  2023-06-24 20:13:57.956152289 +0200
@@ -35,6 +35,8 @@
 Patch1:         accountsservice-filter-suse-accounts.patch
 # PATCH-FIX-OPENSUSE harden_accounts-daemon.service.patch jseg...@suse.com -- 
For details please see 
https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
 Patch2:         harden_accounts-daemon.service.patch
+# PATCH-FIX-UPSTREAM accountsservice-assume-gdm.patch boo#1212675 
dims...@opensuse.org -- Assume GDM if not able to detect the right DM
+Patch3:         accountsservice-assume-gdm.patch
 
 ## SLE and Leap only patches start at 1000
 # PATCH-FEATURE-SLE as-fate318433-prevent-same-account-multi-logins.patch 
fate#318433 cxi...@suse.com -- prevent multiple simultaneous login.
@@ -115,6 +117,7 @@
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 # SLE and Leap patches start at 1000
 %if 0%{?sle_version}

++++++ accountsservice-assume-gdm.patch ++++++
>From ea88bc6ab047117b989c624d6374396e06699b50 Mon Sep 17 00:00:00 2001
From: Ray Strode <rstr...@redhat.com>
Date: Wed, 19 Apr 2023 11:22:29 -0400
Subject: daemon: Assume GDM for autologin if we can't figure it out from
 systemd

Right now we figure out which display manager to configure based on
reading a symlink from systemd.

This isn't full proof though. SELinux security policies may prevent it
from being readable, the system might not be using systemd, etc.

Furthermore, in the case where it fails, we currently don't set a
a GError, which leads to a crash when trying to fetch the error
message.

This commit makes accountsservice fall back to GDM when it can't
figure out what else to do. That way we maintain better backward
compatibility.

https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2450
---
 src/daemon.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/daemon.c b/src/daemon.c
index 1ad7be6..92a5c06 100644
--- a/src/daemon.c
+++ b/src/daemon.c
@@ -1803,9 +1803,8 @@ load_autologin (Daemon   *daemon,
         else if (dm_type == DISPLAY_MANAGER_TYPE_GDM)
                 return load_autologin_gdm (daemon, name, enabled, error);
 
-        g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, _ 
("Unsupported Display Manager"));
-
-        return FALSE;
+        /* Default to GDM for backward compatibility */
+        return load_autologin_gdm (daemon, name, enabled, error);
 }
 
 static gboolean
@@ -1885,7 +1884,8 @@ save_autologin (Daemon      *daemon,
         else if (dm_type == DISPLAY_MANAGER_TYPE_GDM)
                 return save_autologin_gdm (daemon, name, enabled, error);
 
-        return FALSE;
+        /* Default to GDM for backward compatibility */
+        return save_autologin_gdm (daemon, name, enabled, error);
 }
 
 gboolean
-- 
cgit v1.2.1

Reply via email to