mirror of
https://github.com/samba-team/samba.git
synced 2025-12-13 16:23:50 +03:00
r23475: Fix the prototype for sys_broken_setgroups and log *BSD group list
truncation a bit more verbosely.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
cbd33da9f7
commit
e3ea997289
@@ -936,7 +936,7 @@ static int sys_broken_getgroups(int setlen, gid_t *gidset)
|
|||||||
return ngroups;
|
return ngroups;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int sys_broken_setgroups(gid_t primary_gid, int setlen, gid_t *gidset)
|
static int sys_broken_setgroups(int setlen, gid_t *gidset)
|
||||||
{
|
{
|
||||||
GID_T *group_list;
|
GID_T *group_list;
|
||||||
int i ;
|
int i ;
|
||||||
@@ -1019,7 +1019,7 @@ static int sys_bsd_setgroups(gid_t primary_gid, int setlen, const gid_t *gidset)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (setlen > max) {
|
if (setlen > max) {
|
||||||
DEBUG(10, ("forced to truncate group list from %d to %d\n",
|
DEBUG(3, ("forced to truncate group list from %d to %d\n",
|
||||||
setlen, max));
|
setlen, max));
|
||||||
setlen = max;
|
setlen = max;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user