From: Rob Landley Date: Sat, 30 Nov 2013 06:57:26 +0000 (-0600) Subject: Fix cut. X-Git-Tag: 0.5.0~383 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=639334be803dae79d69e6d6ca139bb3749c9705d;p=platform%2Fupstream%2Ftoybox.git Fix cut. Some commands went in before "pending", and thus need cleanup but are enabled in defconfig. The fact cut used a function out of lib/pending.c is a hint it might be in this category... --- diff --git a/toys/posix/cut.c b/toys/posix/cut.c index abf944d..5ca466d 100644 --- a/toys/posix/cut.c +++ b/toys/posix/cut.c @@ -82,14 +82,14 @@ static void parse_list(char *list) //Get start position. if (*(dtoken = strsep(&ctoken, "-"))) { - start = get_int_value(dtoken, 0, INT_MAX); + start = atolx_range(dtoken, 0, INT_MAX); start = (start?(start-1):start); } //Get end position. if (!ctoken) end = -1; //case e.g. 1,2,3 else if (*ctoken) {//case e.g. N-M - end = get_int_value(ctoken, 0, INT_MAX); + end = atolx_range(ctoken, 0, INT_MAX); if (!end) end = INT_MAX; end--; if(end == start) end = -1;