[systemd-devel] [PATCH 6/7] calendar: no backward compatibility for erroneous label

Daniele Medri dmedri at gmail.com
Mon Oct 27 00:42:44 PDT 2014


---
 src/shared/calendarspec.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/shared/calendarspec.c b/src/shared/calendarspec.c
index fae7dfd..8e6c871 100644
--- a/src/shared/calendarspec.c
+++ b/src/shared/calendarspec.c
@@ -885,8 +885,7 @@ int calendar_spec_from_string(const char *p, CalendarSpec **spec) {
                 if (r < 0)
                         goto fail;
 
-        } else if (strcaseeq(p, "annually") || strcaseeq(p, "yearly")
-                   || strcaseeq(p, "anually") /* backwards compatibility */ ) {
+        } else if (strcaseeq(p, "annually") || strcaseeq(p, "yearly")) {
                 r = const_chain(1, &c->month);
                 if (r < 0)
                         goto fail;
-- 
1.9.3



More information about the systemd-devel mailing list