Accepting request 657455 from GNOME:Factory
OBS-URL: https://build.opensuse.org/request/show/657455 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/accountsservice?expand=0&rev=61
This commit is contained in:
commit
77f07d4db5
24
accountsservice-read-root-user-cache.patch
Normal file
24
accountsservice-read-root-user-cache.patch
Normal file
@ -0,0 +1,24 @@
|
||||
Index: accountsservice-0.6.50/src/daemon.c
|
||||
===================================================================
|
||||
--- accountsservice-0.6.50.orig/src/daemon.c
|
||||
+++ accountsservice-0.6.50/src/daemon.c
|
||||
@@ -813,9 +813,19 @@ add_new_user_for_pwent (Daemon *d
|
||||
struct spwd *spent)
|
||||
{
|
||||
User *user;
|
||||
+ g_autofree gchar *filename = NULL;
|
||||
+ g_autoptr(GKeyFile) key_file = NULL;
|
||||
+ const gchar *user_name;
|
||||
|
||||
user = user_new (daemon, pwent->pw_uid);
|
||||
user_update_from_pwent (user, pwent, spent);
|
||||
+
|
||||
+ user_name = user_get_user_name (user);
|
||||
+ filename = g_build_filename (USERDIR, user_name, NULL);
|
||||
+ key_file = g_key_file_new ();
|
||||
+ if (g_key_file_load_from_file (key_file, filename, 0, NULL))
|
||||
+ user_update_from_keyfile (user, key_file);
|
||||
+
|
||||
user_register (user);
|
||||
|
||||
g_hash_table_insert (daemon->priv->users,
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 10 05:48:13 UTC 2018 - xwang@suse.com
|
||||
|
||||
- Add accountsservice-read-root-user-cache.patch: Read root user
|
||||
cache file (bsc#1114292 glfo#accountsservice/accountsservice#65).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 22 20:39:59 UTC 2018 - bjorn.lie@gmail.com
|
||||
|
||||
|
@ -32,6 +32,8 @@ Patch0: accountsservice-sysconfig.patch
|
||||
Patch1: accountsservice-filter-suse-accounts.patch
|
||||
# PATCH-FIX-UPSTREAM accountsservice-lib-don-not-set-loaded-state-until-seat-fetched.patch boo#1100041 fdo#107298 -- lib: don't set loaded state until seat is fetched
|
||||
Patch4: accountsservice-lib-don-not-set-loaded-state-until-seat-fetched.patch
|
||||
# PATCH-FIX-UPSTREAM accountsservice-read-root-user-cache.patch bsc#1114292 glfo#accountsservice/accountsservice#65 xwang@suse.com-- read root user cache file.
|
||||
Patch5: accountsservice-read-root-user-cache.patch
|
||||
## SLE-only patches start at 1000
|
||||
# PATCH-FEATURE-SLE as-fate318433-prevent-same-account-multi-logins.patch fate#318433 cxiong@suse.com -- prevent multiple simultaneous login.
|
||||
Patch1000: as-fate318433-prevent-same-account-multi-logins.patch
|
||||
@ -101,6 +103,7 @@ querying and manipulating user account information.
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
# Sle-only patches start at 1000
|
||||
%if !0%{?is_opensuse}
|
||||
%patch1000 -p1
|
||||
|
Loading…
x
Reference in New Issue
Block a user