Skip to content

Commit

Permalink
Reject incorrect modulo specifications
Browse files Browse the repository at this point in the history
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 <marco.van.wieringen@bareos.com>
  • Loading branch information
pstorz authored and Marco van Wieringen committed May 5, 2013
1 parent dff45e8 commit 0f4b3c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dird/run_conf.c
Expand Up @@ -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:
Expand Down

0 comments on commit 0f4b3c4

Please sign in to comment.