author | Olivier Brunel
<jjk@jjacky.com> 2016-05-14 17:32:11 UTC |
committer | Olivier Brunel
<jjk@jjacky.com> 2016-05-14 17:32:11 UTC |
parent | 7fb28b3a849d7e4b981925ace324ee30085a61e0 |
doc/slicd-parser.pod | +2 | -2 |
src/libslicd/slicd_add_job_from_cronline.c | +1 | -1 |
diff --git a/doc/slicd-parser.pod b/doc/slicd-parser.pod index 53b3064..73eee22 100644 --- a/doc/slicd-parser.pod +++ b/doc/slicd-parser.pod @@ -81,8 +81,8 @@ The time-and-date fields are, in order: month 1-12 (or names, see below) day of the week 0-6 (0=Sunday, 1=Monday, etc; or names, see below) -The hour field can have its value prefixed with an exclamation point (!) to -enable the special DST mode for the job; See B<slicd-sched>(1) for more. +The hour field can have its value prefixed with a dollar sign ($) to enable the +special DST mode for the job; See B<slicd-sched>(1) for more. Range of values are allowed, separating two values with a hyphen (-). The specified range is inclusive, and must always have the lower value first. diff --git a/src/libslicd/slicd_add_job_from_cronline.c b/src/libslicd/slicd_add_job_from_cronline.c index e2c7d66..e1d5d5c 100644 --- a/src/libslicd/slicd_add_job_from_cronline.c +++ b/src/libslicd/slicd_add_job_from_cronline.c @@ -86,7 +86,7 @@ parse_interval (slicd_job_t *job, slicd_field_t field, const char **s) int max = min + _slicd_fields[field].max; int from, to, step; - if (field == SLICD_HOURS && **s == '!') + if (field == SLICD_HOURS && **s == '$') { slicd_job_set_dst_special (job, 1); ++*s;