aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 8748464ed..f5f8e1635 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1206,11 +1206,13 @@ gid_t *bb_getgroups(int *ngroups, gid_t *group_array) FAST_FUNC;
1206 * getgroups() is cached in supplementary_array[], to make successive calls faster. 1206 * getgroups() is cached in supplementary_array[], to make successive calls faster.
1207 */ 1207 */
1208struct cached_groupinfo { 1208struct cached_groupinfo {
1209 //TODO? gid_t egid; 1209 uid_t euid;
1210 gid_t egid;
1210 int ngroups; 1211 int ngroups;
1211 gid_t *supplementary_array; 1212 gid_t *supplementary_array;
1212}; 1213};
1213//TODO? int FAST_FUNC get_cached_egid(gid_t *egid); 1214uid_t FAST_FUNC get_cached_euid(uid_t *euid);
1215gid_t FAST_FUNC get_cached_egid(gid_t *egid);
1214int FAST_FUNC is_in_supplementary_groups(struct cached_groupinfo *groupinfo, gid_t gid); 1216int FAST_FUNC is_in_supplementary_groups(struct cached_groupinfo *groupinfo, gid_t gid);
1215 1217
1216#if ENABLE_FEATURE_UTMP 1218#if ENABLE_FEATURE_UTMP