mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 14:03:07 +01:00
cleanup suggested by Claudio
This commit is contained in:
parent
5eeb60e5bf
commit
832394fd5a
@ -1126,11 +1126,11 @@ static bool accept_connection(rem_port* port, const P_CNCT* cnct)
|
||||
eff_gid = passwd->pw_gid;
|
||||
#else
|
||||
|
||||
SLONG gids[BUFFER_TINY];
|
||||
|
||||
initgroups(passwd->pw_name, passwd->pw_gid);
|
||||
if (eff_gid != -1) {
|
||||
const int gid_count = getgroups(FB_NELEM(gids), (gid_t*)gids);
|
||||
gid_t gids[BUFFER_TINY];
|
||||
|
||||
const int gid_count = getgroups(FB_NELEM(gids), gids);
|
||||
int i;
|
||||
for (i = 0; i < gid_count; ++i) {
|
||||
if (gids[i] == eff_gid) {
|
||||
|
Loading…
Reference in New Issue
Block a user