[Bug 1915] Ash -ne test does not fail correctly
bugzilla at busybox.net
bugzilla at busybox.net
Wed Jun 2 23:46:54 UTC 2010
https://bugs.busybox.net/show_bug.cgi?id=1915
--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com> ---
Fix:
--- busybox.3/coreutils/test.c 2010-05-31 02:14:36.000000000 +0200
+++ busybox.4/coreutils/test.c 2010-06-03 01:45:59.000000000 +0200
@@ -393,7 +393,7 @@ static number_t getn(const char *s)
if (errno != 0)
syntax(s, "out of range");
- if (*(skip_whitespace(p)))
+ if (p == s || *(skip_whitespace(p)))
syntax(s, "bad number");
return r;
I am committing it to git.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list