keyfile: suppress bogus warning about [ethernet-s390-options] setting

S390 options are stored in a separate [ethernet-s390-options] section.
This group must not be interpreted as a NMSetting name, otherwise we
log a bogus warning:

  <warn>  [1590523563.7757] keyfile: ethernet-s390-options: invalid setting name 'ethernet-s390-options'

Fixes: cf9b8d3bad ('libnm/keyfile: implement ethernet.s390-options in keyfile')
(cherry picked from commit 82a468c9ad)
(cherry picked from commit d611647997)
This commit is contained in:
Thomas Haller 2020-05-26 22:45:01 +02:00
parent 321311ff7d
commit e9f2831ab5
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -3558,7 +3558,8 @@ nm_keyfile_read (GKeyFile *keyfile,
vpn_secrets = TRUE;
} else if (NM_STR_HAS_PREFIX (groups[i], NM_KEYFILE_GROUPPREFIX_WIREGUARD_PEER))
_read_setting_wireguard_peer (&info);
else if (nm_streq (groups[i], NM_KEYFILE_GROUP_NMMETA)) {
else if (NM_IN_STRSET (groups[i], NM_KEYFILE_GROUP_NMMETA,
ETHERNET_S390_OPTIONS_GROUP_NAME)) {
/* pass */
} else
_read_setting (&info);