From 5b2bf526174ae44288cbaee5c410ffda02a9aa58 Mon Sep 17 00:00:00 2001 From: Patrik Flykt Date: Fri, 24 May 2013 14:58:07 +0300 Subject: client: Accept correctly spelled option name Accept also correctly spelled version of 'preferred' option. --- client/commands.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client') diff --git a/client/commands.c b/client/commands.c index bd33284d..1a87c539 100644 --- a/client/commands.c +++ b/client/commands.c @@ -738,10 +738,12 @@ static void config_append_ipv6(DBusMessageIter *iter, void *user_data) if (opts[1] != NULL) { append->values = 2; - if (g_strcmp0(opts[1], "prefered") != 0) { + if (g_strcmp0(opts[1], "prefered") != 0 && + g_strcmp0(opts[1], + "preferred") != 0) { fprintf(stderr, "Error %s: %s\n", opts[1], - strerror(-EINVAL)); + strerror(EINVAL)); return; } -- cgit v1.2.3