diff options
author | Ron Yorston <rmy@pobox.com> | 2024-10-09 08:22:14 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-10-09 08:22:14 +0100 |
commit | 9b181bf263b9d7c71b347542d945fe2467a495c6 (patch) | |
tree | fdfeab7574cde32d9b0a52a79d882dc4bf63710b /include/libbb.h | |
parent | ded78ca2656fd41f130d65345b0eb4d39b1fcbdf (diff) | |
download | busybox-w32-9b181bf263b9d7c71b347542d945fe2467a495c6.tar.gz busybox-w32-9b181bf263b9d7c71b347542d945fe2467a495c6.tar.bz2 busybox-w32-9b181bf263b9d7c71b347542d945fe2467a495c6.zip |
test: code shrink supplementary groups
Since we don't use is_in_supplementary_groups() there's no need for
the cached_groupinfo structure to include the members required for
its support or for them to be initialised.
Saves 32 bytes.
Diffstat (limited to '')
-rw-r--r-- | include/libbb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index ed8892562..bc1453e12 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1268,8 +1268,12 @@ gid_t *bb_getgroups(int *ngroups, gid_t *group_array) FAST_FUNC; | |||
1268 | struct cached_groupinfo { | 1268 | struct cached_groupinfo { |
1269 | uid_t euid; | 1269 | uid_t euid; |
1270 | gid_t egid; | 1270 | gid_t egid; |
1271 | #if !ENABLE_PLATFORM_MINGW32 | ||
1272 | // If these are ever restored on Windows it will be necessary to alter | ||
1273 | // globals_misc_size()/globals_misc_copy() in ash. | ||
1271 | int ngroups; | 1274 | int ngroups; |
1272 | gid_t *supplementary_array; | 1275 | gid_t *supplementary_array; |
1276 | #endif | ||
1273 | }; | 1277 | }; |
1274 | uid_t FAST_FUNC get_cached_euid(uid_t *euid); | 1278 | uid_t FAST_FUNC get_cached_euid(uid_t *euid); |
1275 | gid_t FAST_FUNC get_cached_egid(gid_t *egid); | 1279 | gid_t FAST_FUNC get_cached_egid(gid_t *egid); |