- pull r18758 from trunk: fix wrong not operator which was essentially ignored.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 6 Jun 2007 19:30:12 +0000 (19:30 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 6 Jun 2007 19:30:12 +0000 (19:30 -0000)
coreutils/test.c

index fd10e68450005815a248c9b7b61ce586ffc48eb8..a09f7e6ec4a415a5142f62936b984d520a745fcc 100644 (file)
@@ -227,7 +227,7 @@ int bb_test(int argc, char **argv)
                t_lex(argv[2 + _off]);
                if (t_wp_op && t_wp_op->op_type == BINOP) {
                        t_wp = &argv[1 + _off];
-                       return binop() == 0;
+                       return binop() == 1;
                }
        }
        t_wp = &argv[1];