diff options
| author | Michael Biebl <biebl@debian.org> | 2018-07-25 13:13:04 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2018-07-25 13:13:04 +0200 |
| commit | 08984bbd9d6c7c8a033c7d1466c25a34bcc21c0d (patch) | |
| tree | 53671bf0bb9d3f465b02a1bc149512a210da34a1 /libnm-core | |
| parent | 0d06e842e34adca9a743de93979a7432961257c6 (diff) | |
| parent | caf1db9d6fbc056cc6c76a24574890f6c7895f3d (diff) | |
Update upstream source from tag 'upstream/1.12.2'
Update to upstream version '1.12.2' with Debian dir 31e4999680481a4db05a3c008df492a8905a4ab3
Diffstat (limited to 'libnm-core')
| -rw-r--r-- | libnm-core/nm-setting-connection.c | 12 | ||||
| -rw-r--r-- | libnm-core/nm-version.h | 6 |
2 files changed, 13 insertions, 5 deletions
diff --git a/libnm-core/nm-setting-connection.c b/libnm-core/nm-setting-connection.c index 2649838c..689ba794 100644 --- a/libnm-core/nm-setting-connection.c +++ b/libnm-core/nm-setting-connection.c @@ -1051,15 +1051,17 @@ verify (NMSetting *setting, NMConnection *connection, GError **error) } } - if ( nm_streq0 (type, NM_SETTING_OVS_PORT_SETTING_NAME) - && !nm_streq0 (slave_type, NM_SETTING_OVS_BRIDGE_SETTING_NAME)) { + if ( strcmp (type, NM_SETTING_OVS_PORT_SETTING_NAME) == 0 + && slave_type + && strcmp (slave_type, NM_SETTING_OVS_BRIDGE_SETTING_NAME) != 0) { g_set_error (error, NM_CONNECTION_ERROR, NM_CONNECTION_ERROR_MISSING_PROPERTY, - _("Only '%s' connections can be enslaved to '%s'"), + _("'%s' connections must be enslaved to '%s', not '%s'"), NM_SETTING_OVS_PORT_SETTING_NAME, - NM_SETTING_OVS_BRIDGE_SETTING_NAME); - g_prefix_error (error, "%s.%s: ", NM_SETTING_CONNECTION_SETTING_NAME, NM_SETTING_CONNECTION_TYPE); + NM_SETTING_OVS_BRIDGE_SETTING_NAME, + slave_type); + g_prefix_error (error, "%s.%s: ", NM_SETTING_CONNECTION_SETTING_NAME, NM_SETTING_CONNECTION_SLAVE_TYPE); return FALSE; } diff --git a/libnm-core/nm-version.h b/libnm-core/nm-version.h index 0412bc8e..ee6dbc0b 100644 --- a/libnm-core/nm-version.h +++ b/libnm-core/nm-version.h @@ -160,4 +160,10 @@ # define NM_AVAILABLE_IN_1_12 #endif +#if NM_VERSION_MAX_ALLOWED < NM_VERSION_1_12_2 +# define NM_AVAILABLE_IN_1_12_2 G_UNAVAILABLE(1,12,2) +#else +# define NM_AVAILABLE_IN_1_12_2 +#endif + #endif /* NM_VERSION_H */ |