mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-03 15:58:02 +02: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')
This commit is contained in:
parent
051819a78e
commit
de1c06daab
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