git: 7220f36f6cf9 - stable/14 - getgrouplist(3): Remove superfluous headers, bogus comment and whitespace
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 18 Sep 2025 10:13:43 UTC
The branch stable/14 has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=7220f36f6cf9d72bef0f274d4134fad0d86f6052
commit 7220f36f6cf9d72bef0f274d4134fad0d86f6052
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2025-09-12 12:29:59 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2025-09-18 10:13:10 +0000
getgrouplist(3): Remove superfluous headers, bogus comment and whitespace
No functional change (intended).
Fixes: a59d6a872459 ("Implementing 'fallback' nsswitch source.")
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
(cherry picked from commit d3f8ed6066fdea329ed695925fc726e84d50abc3)
---
lib/libc/gen/getgrouplist.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/lib/libc/gen/getgrouplist.c b/lib/libc/gen/getgrouplist.c
index 6dddea5c3847..90626cef3c83 100644
--- a/lib/libc/gen/getgrouplist.c
+++ b/lib/libc/gen/getgrouplist.c
@@ -31,15 +31,8 @@
#include <sys/cdefs.h>
__SCCSID("@(#)getgrouplist.c 8.2 (Berkeley) 12/8/94");
-/*
- * get credential
- */
#include <sys/types.h>
-#include <grp.h>
-#include <string.h>
-#include <unistd.h>
-
extern int __getgroupmembership(const char *, gid_t, gid_t *, int, int *);
int
@@ -47,4 +40,3 @@ getgrouplist(const char *uname, gid_t agroup, gid_t *groups, int *grpcnt)
{
return __getgroupmembership(uname, agroup, groups, *grpcnt, grpcnt);
}
-