Expand the user_* (and more) macros to user_ctx.foo.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user