Defer group ID to name resolution until we actually need it.

This commit is contained in:
Todd C. Miller
2012-06-27 16:50:56 -04:00
parent faf89fc792
commit 1cd50d0bce
3 changed files with 21 additions and 31 deletions

View File

@@ -1430,8 +1430,8 @@ deserialize_info(char * const args[], char * const settings[], char * const user
break;
cp++; /* skip over comma */
}
sudo_set_grlist(user_name, gids, ngids);
efree(gids);
user_gids = gids;
user_ngids = ngids;
}
/* Setup debugging if indicated. */