Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jun 2023 13:29:13 GMT
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 2352c3fed91c - main - sysutils/accountsservice: Fix a bug with the User.SetAccountType() method.
Message-ID:  <202306271329.35RDTDgI022166@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
+ }
+ 
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306271329.35RDTDgI022166>