summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniele Medri <dmedri@gmail.com>2014-10-27 08:42:42 +0100
committerLennart Poettering <lennart@poettering.net>2014-10-27 13:42:02 +0100
commit272ac205176dc922a2da87d212fd2c88ece4231e (patch)
treec851bcbe2a3eb5921f798ee9ca3719f413acac0f /src
parent2d1239ea20f65b3d6ab5aeaef0efc464103be977 (diff)
calendar: new case 'minutely'
Diffstat (limited to 'src')
-rw-r--r--src/shared/calendarspec.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/shared/calendarspec.c b/src/shared/calendarspec.c
index 64d0dec364..da920b6dd9 100644
--- a/src/shared/calendarspec.c
+++ b/src/shared/calendarspec.c
@@ -655,7 +655,12 @@ int calendar_spec_from_string(const char *p, CalendarSpec **spec) {
if (!c)
return -ENOMEM;
- if (strcaseeq(p, "hourly")) {
+ if (strcaseeq(p, "minutely")) {
+ r = const_chain(0, &c->second);
+ if (r < 0)
+ goto fail;
+
+ } else if (strcaseeq(p, "hourly")) {
r = const_chain(0, &c->minute);
if (r < 0)
goto fail;