mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 12:40:11 +01:00
config: fix a reversed conditional
This effectively makes [*global-dns-domain-*] sections in configuration be ignored unless [*global-dns] is also present. This happens because nm_config_keyfile_has_global_dns_config() mixes the group names up and attempts to loop up [.intern.global-dns-domain-*] in user configuration and [global-dns-domain-*] in the internal one. Fixes:da0ded4927('config: drop global-dns.enable option in favor of .config.enable') (cherry picked from commitde1c06daab) (cherry picked from commitbd4f5333e8)
This commit is contained in:
parent
f3ceba65f4
commit
c6685f0179
1 changed files with 2 additions and 2 deletions
|
|
@ -1509,8 +1509,8 @@ nm_config_keyfile_has_global_dns_config(GKeyFile *keyfile, gboolean internal)
|
|||
if (!keyfile)
|
||||
return FALSE;
|
||||
if (g_key_file_has_group(keyfile,
|
||||
internal ? NM_CONFIG_KEYFILE_GROUP_GLOBAL_DNS
|
||||
: NM_CONFIG_KEYFILE_GROUP_INTERN_GLOBAL_DNS))
|
||||
internal ? NM_CONFIG_KEYFILE_GROUP_INTERN_GLOBAL_DNS
|
||||
: NM_CONFIG_KEYFILE_GROUP_GLOBAL_DNS))
|
||||
return TRUE;
|
||||
|
||||
groups = g_key_file_get_groups(keyfile, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue