aboutsummaryrefslogtreecommitdiff
path: root/coreutils/test.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-06-08 07:59:54 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-06-08 07:59:54 +0000
commitdc4ab54ea7e98fdfd3e1e07ca0743b77baca7856 (patch)
treea1558cdc19d611a5e6626597b4aecfab42cebebe /coreutils/test.c
parent89bca271585937793bcd07fe28ac642985ed0b6f (diff)
downloadbusybox-dc4ab54ea7e98fdfd3e1e07ca0743b77baca7856.tar.gz
test: fix thinko in previous commit
Diffstat (limited to 'coreutils/test.c')
-rw-r--r--coreutils/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/test.c b/coreutils/test.c
index f86176168..92f94b414 100644
--- a/coreutils/test.c
+++ b/coreutils/test.c
@@ -194,7 +194,7 @@ int bb_test(int argc, char **argv)
return 2;
}
argv[argc] = NULL;
- } else if (LONE_CHAR(arg0, '[') == 0) { /* "[[" ? */
+ } else if (LONE_CHAR(arg0+1, '[') == 0) { /* "[[" ? */
--argc;
if (strcmp(argv[argc], "]]") != 0) {
bb_error_msg("missing ]]");