[PATCH] Implement std.rfcdate
Poul-Henning Kamp
phk at phk.freebsd.dk
Thu Oct 11 12:19:06 CEST 2012
--------
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 */
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-dev
mailing list