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>
This commit is contained in:
parent
4c1d645c86
commit
d26e958725
3 changed files with 19 additions and 6 deletions
|
@ -10175,8 +10175,7 @@ static int FAST_FUNC echocmd(int argc, char **argv) { return echo_main(argc, a
|
|||
static int FAST_FUNC printfcmd(int argc, char **argv) { return printf_main(argc, argv); }
|
||||
#endif
|
||||
#if ENABLE_ASH_TEST || BASH_TEST2
|
||||
static int FAST_FUNC testcmd(int argc, char **argv) { return test_main(argc, argv); }
|
||||
// TODO: pass &ngroups and &group_array addresses to test_main to use cached supplementary groups
|
||||
static int FAST_FUNC testcmd(int argc, char **argv) { return test_main2(&groupinfo, argc, argv); }
|
||||
#endif
|
||||
#if ENABLE_ASH_SLEEP
|
||||
static int FAST_FUNC sleepcmd(int argc, char **argv) { return sleep_main(argc, argv); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue