From c052d1180ec8a9d94a7bd6a64dd7b986ad1a5104 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Wed, 9 Oct 2024 13:01:28 +0100 Subject: id: code shrink The bogus user/group ids we use on Windows are very limited. Make these limitations explicit in the 'id' applet. Saves 464 bytes. --- libbb/bb_getgroups.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libbb/bb_getgroups.c') diff --git a/libbb/bb_getgroups.c b/libbb/bb_getgroups.c index c255d4e4c..757b80be8 100644 --- a/libbb/bb_getgroups.c +++ b/libbb/bb_getgroups.c @@ -10,6 +10,7 @@ #include "libbb.h" +#if !ENABLE_PLATFORM_MINGW32 gid_t* FAST_FUNC bb_getgroups(int *ngroups, gid_t *group_array) { int n = ngroups ? *ngroups : 0; @@ -45,6 +46,7 @@ gid_t* FAST_FUNC bb_getgroups(int *ngroups, gid_t *group_array) *ngroups = n; return group_array; } +#endif uid_t FAST_FUNC get_cached_euid(uid_t *euid) { -- cgit v1.2.3-55-g6feb