Searched refs:gids_count (Results 1 – 1 of 1) sorted by relevance
/system/extras/su/ |
D | su.c | 45 void extract_uidgids(const char* uidgids, uid_t* uid, gid_t* gid, gid_t* gids, int* gids_count) { in extract_uidgids() argument 53 *gids_count = 0; in extract_uidgids() 65 *gids_count = 0; in extract_uidgids() 71 while ((gids_found < *gids_count) && (tok = strsep(&nexttok, ","))) { in extract_uidgids() 76 if (nexttok && gids_found == *gids_count) { in extract_uidgids() 79 *gids_count = gids_found; in extract_uidgids() 108 int gids_count = sizeof(gids)/sizeof(gids[0]); in main() local 109 extract_uidgids(*argv, &uid, &gid, gids, &gids_count); in main() 110 if (gids_count) { in main() 111 if (setgroups(gids_count, gids)) { in main()
|