[systemd-devel] [PATCH 6/7] calendar: no backward compatibility for erroneous label
Lennart Poettering
lennart at poettering.net
Mon Oct 27 05:43:50 PDT 2014
On Mon, 27.10.14 08:42, Daniele Medri (dmedri at gmail.com) wrote:
Hmm? Why would we want to drop the backwards compatibility here? We
juste added it a few days ago!
> ---
> 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
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list