diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2024-10-07 07:14:27 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2024-10-07 07:14:27 +0200 |
commit | d26e9587252fdf4774a05e351b86d3a18c46384e (patch) | |
tree | 9ac2ac9a1c1b642f4bcf9899339f9072b78a0b32 /shell/ash.c | |
parent | 4c1d645c86f4e7a380d96f9ba962f8b270f595dc (diff) | |
download | busybox-w32-d26e9587252fdf4774a05e351b86d3a18c46384e.tar.gz busybox-w32-d26e9587252fdf4774a05e351b86d3a18c46384e.tar.bz2 busybox-w32-d26e9587252fdf4774a05e351b86d3a18c46384e.zip |
ash: make "test -x" use cached groupinfo
function old new delta
test_main2 - 407 +407
testcmd 10 23 +13
test_main 418 56 -362
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 420/-362) Total: 58 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to '')
-rw-r--r-- | shell/ash.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c index fa57511a7..a6bb9894c 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -10175,8 +10175,7 @@ static int FAST_FUNC echocmd(int argc, char **argv) { return echo_main(argc, a | |||
10175 | static int FAST_FUNC printfcmd(int argc, char **argv) { return printf_main(argc, argv); } | 10175 | static int FAST_FUNC printfcmd(int argc, char **argv) { return printf_main(argc, argv); } |
10176 | #endif | 10176 | #endif |
10177 | #if ENABLE_ASH_TEST || BASH_TEST2 | 10177 | #if ENABLE_ASH_TEST || BASH_TEST2 |
10178 | static int FAST_FUNC testcmd(int argc, char **argv) { return test_main(argc, argv); } | 10178 | static int FAST_FUNC testcmd(int argc, char **argv) { return test_main2(&groupinfo, argc, argv); } |
10179 | // TODO: pass &ngroups and &group_array addresses to test_main to use cached supplementary groups | ||
10180 | #endif | 10179 | #endif |
10181 | #if ENABLE_ASH_SLEEP | 10180 | #if ENABLE_ASH_SLEEP |
10182 | static int FAST_FUNC sleepcmd(int argc, char **argv) { return sleep_main(argc, argv); } | 10181 | static int FAST_FUNC sleepcmd(int argc, char **argv) { return sleep_main(argc, argv); } |