[PATCH] Implement std.rfcdate
Federico Schwindt
fgsch at lodoss.net
Thu Oct 11 12:35:15 CEST 2012
On Thu, Oct 11, 2012 at 11:19 AM, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
> --------
> In message <76841.1349946303 at critter.freebsd.dk>, Poul-Henning Kamp writes:
>
>
> Can you try this patch ?
>
> (NB: copy&pasted, you probably need to apply by hand...)
>
> (PS: and place open a ticket for this bug)
>
> diff --git a/lib/libvcl/vcc_expr.c b/lib/libvcl/vcc_expr.c
> index 72c26a9..5223392 100644
> --- a/lib/libvcl/vcc_expr.c
> +++ b/lib/libvcl/vcc_expr.c
> @@ -847,6 +847,10 @@ vcc_expr_add(struct vcc *tl, struct expr **e, enum var_type
> ERRCHK(tl);
> if (tk->tok == '-' && (*e)->fmt == TIME && e2->fmt == TIME) {
> /* OK */
> + } else if (tk->tok == '+' &&
> + (*e)->fmt == TIME && e2->fmt == DURATION) {
> + f2 = TIME;
> + /* OK */
> } else if (tk->tok == '-' &&
> (*e)->fmt == BYTES && e2->fmt == BYTES) {
> /* OK */
Yes, that works.
f.-
More information about the varnish-dev
mailing list