[patch] test applet
Denis Vlasenko
vda.linux at googlemail.com
Sun May 27 03:03:46 UTC 2007
On Saturday 26 May 2007 15:24, Souf wrote:
> I saw that my 1st patch was not applied, so better because I have
> another, it correct the bug and remove getn(const char *s) function
--- busybox/coreutils/test.c.orig 2007-05-24 23:01:44.000000000 +0200
+++ busybox/coreutils/test.c 2007-05-26 11:48:52.000000000 +0200
@@ -150,8 +150,10 @@ enum { NUM_OPS = sizeof(ops) / sizeof(op
#if ENABLE_FEATURE_TEST_64
typedef int64_t arith_t;
+#define test_xatoi(x) xatoll(x)
#else
typedef int arith_t;
+#define test_xatoi(x) xatol(x)
#endif
You introduced the following bug:
# ./busybox ash
# test 632847655483264856238475 -le 3284573759234759824375987249
ash: invalid number '632847655483264856238475'
<ash exits>
--
vda
More information about the busybox
mailing list