[systemd-commits] src/shared
Lennart Poettering
lennart at kemper.freedesktop.org
Mon Oct 27 05:53:08 PDT 2014
src/shared/calendarspec.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 272ac205176dc922a2da87d212fd2c88ece4231e
Author: Daniele Medri <dmedri at gmail.com>
Date: Mon Oct 27 08:42:42 2014 +0100
calendar: new case 'minutely'
diff --git a/src/shared/calendarspec.c b/src/shared/calendarspec.c
index 64d0dec..da920b6 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;
More information about the systemd-commits
mailing list