From 0f4b3c43fe45adc3d93e1c2cc352a5eeb6375991 Mon Sep 17 00:00:00 2001 From: Philipp Storz Date: Sat, 4 May 2013 13:14:57 +0200 Subject: [PATCH] Reject incorrect modulo specifications Now the parser rejects incorrect modulo specifications with an error and a hint to the correct format. Fixes #135: modulo scheduler does not work with weeks Signed-off-by: Marco van Wieringen --- src/dird/run_conf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dird/run_conf.c b/src/dird/run_conf.c index bf4b282a015..e96074bec0e 100644 --- a/src/dird/run_conf.c +++ b/src/dird/run_conf.c @@ -570,6 +570,8 @@ void store_run(LEX *lc, RES_ITEM *item, int index, int pass) set_bit(i + code - 1, lrun.woy); } } + } else { + scan_err0(lc, _("Bad modulo time specification. Format for weekdays is '01/02', for yearweeks is 'w01/w02'.")); } break; case s_range: