From: Ian Jackson Date: Mon, 23 Jan 2017 13:52:19 +0000 (+0000) Subject: Support `range' operator, as promised by the spec. Closes:#686449. Bug and analysis... X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv.git;a=commitdiff_plain;h=d189ca5662e8b596fc8ae5857ba67e06c3806e17;ds=inline Support `range' operator, as promised by the spec. Closes:#686449. Bug and analysis from Mark Wooding. --- diff --git a/debian/changelog b/debian/changelog index 4783d88..eca804d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,8 @@ userv (1.1.2~~iwj1) unstable; urgency=low Bugfixes: * Support `stdin', `stdout' and `stderr' in fd ranges, as promised by the spec. Closes:#813005. + * Support `range' operator, as promised by the spec. Closes:#686449. + Bug and analysis from Mark Wooding. * Do not ignore errors from readdir. Closes:#827408 [Peter Benie]. * Correct docs for errors-push, which takes no filename. Closes:#775852. diff --git a/parser.c b/parser.c index 257eb3e..1bdf56d 100644 --- a/parser.c +++ b/parser.c @@ -591,9 +591,7 @@ int pcf_range(int ctoken, char *const *pv, int *rtrue) { char *ep; unsigned long v; - r= pa_mwsp(); if (r) return r; mintoken= pa_numberdollar(&min); if (mintoken == tokv_error) return mintoken; - r= pa_mwsp(); if (r) return r; maxtoken= pa_numberdollar(&max); if (maxtoken == tokv_error) return maxtoken; r= pa_mnl(); if (r) return r; for (pp= pv; *pp; pp++) {