git: 2352c3fed91c - main - sysutils/accountsservice: Fix a bug with the User.SetAccountType() method.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Jun 2023 13:29:13 UTC
The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=2352c3fed91c876ffc880decc9ba775b05844752 commit 2352c3fed91c876ffc880decc9ba775b05844752 Author: Gleb Popov <arrowd@FreeBSD.org> AuthorDate: 2023-06-27 13:25:06 +0000 Commit: Gleb Popov <arrowd@FreeBSD.org> CommitDate: 2023-06-27 13:29:09 +0000 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 --- sysutils/accountsservice/Makefile | 2 +- sysutils/accountsservice/files/patch-src_util.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/sysutils/accountsservice/Makefile b/sysutils/accountsservice/Makefile index 719111dd5bea..6078b9d80983 100644 --- a/sysutils/accountsservice/Makefile +++ b/sysutils/accountsservice/Makefile @@ -1,6 +1,6 @@ PORTNAME= accountsservice PORTVERSION= 0.6.55 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= sysutils devel MASTER_SITES= http://www.freedesktop.org/software/${PORTNAME}/ diff --git a/sysutils/accountsservice/files/patch-src_util.c b/sysutils/accountsservice/files/patch-src_util.c new file mode 100644 index 000000000000..079b7ba75b4b --- /dev/null +++ b/sysutils/accountsservice/files/patch-src_util.c @@ -0,0 +1,11 @@ +--- 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; + } + +