Skip to content

Commit

Permalink
- Nick made the curl tool accept globbing ranges that only is one num…
Browse files Browse the repository at this point in the history
…ber, i.e

  you can now use [1-1] without curl complaining.
  • Loading branch information
bagder committed Mar 15, 2007
1 parent 9189ac1 commit b169aa2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion src/urlglob.c
Expand Up @@ -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);
Expand Down

0 comments on commit b169aa2

Please sign in to comment.