about summary refs log tree commit diff
path: root/clients/cli
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2020-02-26 16:25:55 +0100
committerSebastien Bacher <seb128@ubuntu.com>2020-02-26 16:25:55 +0100
commitee7b95167028fdbb2a4bd32aa686e27817d8dfe0 (patch)
treef7a1abab0400789979f860dda724247a9bbbdef1 /clients/cli
parentc1b3616485604f3fddfad9521cb8818cd8eece2b (diff)
parente536d40eaea5dcdc0743b0a5e8e17faa46608a50 (diff)
Merge branch 'upstream/latest' of https://salsa.debian.org/utopia-team/network-manager into upstream/latest
Diffstat (limited to 'clients/cli')
-rw-r--r--clients/cli/connections.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/clients/cli/connections.c b/clients/cli/connections.c
index a77c2482..e13ae9ac 100644
--- a/clients/cli/connections.c
+++ b/clients/cli/connections.c
@@ -4252,18 +4252,10 @@ set_connection_type (NmCli *nmc, NMConnection *con, const OptionInfo *option, co
 static gboolean
 set_connection_iface (NmCli *nmc, NMConnection *con, const OptionInfo *option, const char *value, GError **error)
 {
-	GError *tmp_error = NULL;
-
 	if (value) {
 		/* Special value of '*' means no specific interface name */
 		if (strcmp (value, "*") == 0)
 			value = NULL;
-		else if (!nm_utils_is_valid_iface_name (value, &tmp_error)) {
-			g_set_error (error, NMCLI_ERROR, NMC_RESULT_ERROR_USER_INPUT,
-			             _("Error: '%s': %s"), value, tmp_error->message);
-			g_error_free (tmp_error);
-			return FALSE;
-		}
 	}
 
 	return set_property (nmc->client,