diff options
Diffstat (limited to 'coreutils/test.c')
-rw-r--r-- | coreutils/test.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/coreutils/test.c b/coreutils/test.c index 7b87a42..82d2664 100644 --- a/coreutils/test.c +++ b/coreutils/test.c @@ -181,11 +181,10 @@ static void initialize_group_array(void); int test_main(int argc, char **argv) { int res; - char *arg0; + const char *arg0; bool _off; - arg0 = strrchr(argv[0], '/'); - if (!arg0++) arg0 = argv[0]; + arg0 = bb_basename(argv[0]); if (arg0[0] == '[') { --argc; if (!arg0[1]) { /* "[" ? */ |