diff --git a/CHANGES b/CHANGES index 3433be3c54a475201bf0256d50e420566d2bf155..e6458feb3520b8a9e83cc465d7c9da1c2480a701 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,10 @@ Changelog +Daniel (15 March 2007) +- Nick made the curl tool accept globbing ranges that only is one number, i.e + you can now use [1-1] without curl complaining. + Daniel (10 March 2007) - Eygene Ryabinkin: diff --git a/src/urlglob.c b/src/urlglob.c index 4dbd2ba2c2bfd1a8650a563f96e954a07728d7eb..97b73f28a3f232c6a2061664380886bbb14bff53 100644 --- a/src/urlglob.c +++ b/src/urlglob.c @@ -214,7 +214,7 @@ static GlobCode glob_range(URLGlob *glob, char *pattern, rc = sscanf(pattern, "%d-%d%c%d%c", &min_n, &max_n, &sep, &step, &sep2); - if ((rc < 2) || (min_n >= max_n)) { + if ((rc < 2) || (min_n > max_n)) { /* the pattern is not well-formed */ snprintf(glob->errormsg, sizeof(glob->errormsg), "error: bad range specification after pos %d\n", pos);