diff options
author | Ron Yorston <rmy@pobox.com> | 2024-10-09 13:01:28 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-10-09 13:01:28 +0100 |
commit | c052d1180ec8a9d94a7bd6a64dd7b986ad1a5104 (patch) | |
tree | 803dea78f2846e1686a3f7357e828422bc918c79 /win32/mingw.c | |
parent | 9b181bf263b9d7c71b347542d945fe2467a495c6 (diff) | |
download | busybox-w32-c052d1180ec8a9d94a7bd6a64dd7b986ad1a5104.tar.gz busybox-w32-c052d1180ec8a9d94a7bd6a64dd7b986ad1a5104.tar.bz2 busybox-w32-c052d1180ec8a9d94a7bd6a64dd7b986ad1a5104.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | win32/mingw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/mingw.c b/win32/mingw.c index c14ad1f1f..d323014b7 100644 --- a/win32/mingw.c +++ b/win32/mingw.c | |||
@@ -1273,6 +1273,7 @@ struct group *getgrgid(gid_t gid) | |||
1273 | return &g; | 1273 | return &g; |
1274 | } | 1274 | } |
1275 | 1275 | ||
1276 | #if 0 | ||
1276 | int getgrouplist(const char *user UNUSED_PARAM, gid_t group, | 1277 | int getgrouplist(const char *user UNUSED_PARAM, gid_t group, |
1277 | gid_t *groups, int *ngroups) | 1278 | gid_t *groups, int *ngroups) |
1278 | { | 1279 | { |
@@ -1295,6 +1296,7 @@ int getgroups(int n, gid_t *groups) | |||
1295 | groups[0] = getgid(); | 1296 | groups[0] = getgid(); |
1296 | return 1; | 1297 | return 1; |
1297 | } | 1298 | } |
1299 | #endif | ||
1298 | 1300 | ||
1299 | int getlogin_r(char *buf, size_t len) | 1301 | int getlogin_r(char *buf, size_t len) |
1300 | { | 1302 | { |