e system main - check getgrid return like elsewhere to maake cov happy

fix CID 1425457
This commit is contained in:
Carsten Haitzler 2020-04-23 00:54:35 +01:00
parent 8bf18495f4
commit 089051af9e
1 changed files with 6 additions and 3 deletions

View File

@ -79,6 +79,8 @@ _etc_enlightenment_system_conf(void)
for (i = 0; i < gn; i++)
{
gp = getgrgid(gl[i]);
if (gp)
{
if (!fnmatch(usergroup, gp->gr_name, 0))
{
in_usergroup = EINA_TRUE;
@ -86,6 +88,7 @@ _etc_enlightenment_system_conf(void)
}
}
}
}
if (in_usergroup)
{
int ok = _conf_allow_deny(cmd, glob);