Skip to content
Snippets Groups Projects
Commit 2352c3fe authored by Gleb Popov's avatar Gleb Popov
Browse files

sysutils/accountsservice: Fix a bug with the User.SetAccountType() method.

This call was removing a user from all its groups.

Sponsored by:	Serenity Cybersecurity, LLC
parent 86d2df34
No related branches found
No related tags found
No related merge requests found
PORTNAME= accountsservice
PORTVERSION= 0.6.55
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= sysutils devel
MASTER_SITES= http://www.freedesktop.org/software/${PORTNAME}/
......
--- src/util.c.orig 2019-04-23 15:16:09 UTC
+++ src/util.c
@@ -254,7 +254,7 @@ get_user_groups (const gchar *user,
*groups = g_new (gid_t, ngroups);
res = getgrouplist (user, group, *groups, &ngroups);
- return res;
+ return res == 0 ? ngroups : res;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment