Expand the user_* (and more) macros to user_ctx.foo.

This commit is contained in:
Todd C. Miller
2023-08-12 10:39:59 -06:00
parent 930ca00252
commit d8b28dad97
34 changed files with 791 additions and 821 deletions

View File

@@ -246,7 +246,7 @@ PREFIX(make_gritem)(gid_t gid, const char *name)
/*
* Dynamically allocate space for a struct item plus the key and data
* elements. Fills in datum from user_gids or from sudo_getgrouplist2(3).
* elements. Fills in datum from user_ctx.gids or from sudo_getgrouplist2(3).
*/
struct cache_item *
PREFIX(make_gidlist_item)(const struct passwd *pw, char * const *gidstrs,
@@ -291,10 +291,10 @@ PREFIX(make_gidlist_item)(const struct passwd *pw, char * const *gidstrs,
}
} else {
/* Adopt user_ctx.gids. */
gids = user_gids;
ngids = user_ngids;
user_gids = NULL;
user_ngids = 0;
gids = user_ctx.gids;
ngids = user_ctx.ngids;
user_ctx.gids = NULL;
user_ctx.ngids = 0;
}
type = ENTRY_TYPE_FRONTEND;
} else {