• Thomas Haller's avatar
    libnm/keyfile: don't parse JSON config in keyfile reader twice · 30455ab1
    Thomas Haller authored
    Commit d6ec009a ('team: normalize invalid configuration during
    load') let's keyfile reader ignore JSON configs that cannot be parsed.
    
    Keep doing that, but don't parse the JSON twice for that.
    
    Just set the JSON, and if the setting afterwards does not verify, reset
    it to NULL. We also get a better error message and in most cases we
    don't need to parse twice.
    30455ab1
Name
Last commit
Last update
..
tests Loading commit data...
meson.build Loading commit data...
nm-connection-private.h Loading commit data...
nm-connection.c Loading commit data...
nm-connection.h Loading commit data...
nm-core-enum-types.c.template Loading commit data...
nm-core-enum-types.h.template Loading commit data...
nm-core-internal.h Loading commit data...
nm-core-types-internal.h Loading commit data...
nm-core-types.h Loading commit data...
nm-crypto-gnutls.c Loading commit data...
nm-crypto-impl.h Loading commit data...
nm-crypto-nss.c Loading commit data...
nm-crypto.c Loading commit data...
nm-crypto.h Loading commit data...
nm-dbus-interface.h Loading commit data...
nm-dbus-utils.c Loading commit data...
nm-errors.c Loading commit data...
nm-errors.h Loading commit data...
nm-json.c Loading commit data...
nm-json.h Loading commit data...
nm-keyfile-internal.h Loading commit data...
nm-keyfile-utils.c Loading commit data...
nm-keyfile-utils.h Loading commit data...
nm-keyfile.c Loading commit data...
nm-property-compare.c Loading commit data...
nm-property-compare.h Loading commit data...
nm-setting-6lowpan.c Loading commit data...
nm-setting-6lowpan.h Loading commit data...
nm-setting-8021x.c Loading commit data...
nm-setting-8021x.h Loading commit data...
nm-setting-adsl.c Loading commit data...
nm-setting-adsl.h Loading commit data...
nm-setting-bluetooth.c Loading commit data...
nm-setting-bluetooth.h Loading commit data...
nm-setting-bond.c Loading commit data...
nm-setting-bond.h Loading commit data...
nm-setting-bridge-port.c Loading commit data...
nm-setting-bridge-port.h Loading commit data...
nm-setting-bridge.c Loading commit data...
nm-setting-bridge.h Loading commit data...
nm-setting-cdma.c Loading commit data...
nm-setting-cdma.h Loading commit data...
nm-setting-connection.c Loading commit data...
nm-setting-connection.h Loading commit data...
nm-setting-dcb.c Loading commit data...
nm-setting-dcb.h Loading commit data...
nm-setting-dummy.c Loading commit data...
nm-setting-dummy.h Loading commit data...
nm-setting-ethtool.c Loading commit data...
nm-setting-ethtool.h Loading commit data...
nm-setting-generic.c Loading commit data...
nm-setting-generic.h Loading commit data...
nm-setting-gsm.c Loading commit data...
nm-setting-gsm.h Loading commit data...
nm-setting-infiniband.c Loading commit data...
nm-setting-infiniband.h Loading commit data...
nm-setting-ip-config.c Loading commit data...
nm-setting-ip-config.h Loading commit data...
nm-setting-ip-tunnel.c Loading commit data...
nm-setting-ip-tunnel.h Loading commit data...
nm-setting-ip4-config.c Loading commit data...
nm-setting-ip4-config.h Loading commit data...
nm-setting-ip6-config.c Loading commit data...
nm-setting-ip6-config.h Loading commit data...
nm-setting-macsec.c Loading commit data...
nm-setting-macsec.h Loading commit data...
nm-setting-macvlan.c Loading commit data...
nm-setting-macvlan.h Loading commit data...
nm-setting-match.c Loading commit data...
nm-setting-match.h Loading commit data...
nm-setting-olpc-mesh.c Loading commit data...
nm-setting-olpc-mesh.h Loading commit data...
nm-setting-ovs-bridge.c Loading commit data...
nm-setting-ovs-bridge.h Loading commit data...
nm-setting-ovs-interface.c Loading commit data...
nm-setting-ovs-interface.h Loading commit data...
nm-setting-ovs-patch.c Loading commit data...
nm-setting-ovs-patch.h Loading commit data...
nm-setting-ovs-port.c Loading commit data...
nm-setting-ovs-port.h Loading commit data...
nm-setting-ppp.c Loading commit data...
nm-setting-ppp.h Loading commit data...
nm-setting-pppoe.c Loading commit data...
nm-setting-pppoe.h Loading commit data...
nm-setting-private.h Loading commit data...
nm-setting-proxy.c Loading commit data...
nm-setting-proxy.h Loading commit data...
nm-setting-serial.c Loading commit data...
nm-setting-serial.h Loading commit data...
nm-setting-sriov.c Loading commit data...
nm-setting-sriov.h Loading commit data...
nm-setting-tc-config.c Loading commit data...
nm-setting-tc-config.h Loading commit data...
nm-setting-team-port.c Loading commit data...
nm-setting-team-port.h Loading commit data...
nm-setting-team.c Loading commit data...
nm-setting-team.h Loading commit data...
nm-setting-tun.c Loading commit data...
nm-setting-tun.h Loading commit data...
nm-setting-user.c Loading commit data...
nm-setting-user.h Loading commit data...
nm-setting-vlan.c Loading commit data...
nm-setting-vlan.h Loading commit data...
nm-setting-vpn.c Loading commit data...
nm-setting-vpn.h Loading commit data...
nm-setting-vxlan.c Loading commit data...
nm-setting-vxlan.h Loading commit data...
nm-setting-wifi-p2p.c Loading commit data...
nm-setting-wifi-p2p.h Loading commit data...
nm-setting-wimax.c Loading commit data...
nm-setting-wimax.h Loading commit data...
nm-setting-wired.c Loading commit data...
nm-setting-wired.h Loading commit data...
nm-setting-wireguard.c Loading commit data...
nm-setting-wireguard.h Loading commit data...
nm-setting-wireless-security.c Loading commit data...
nm-setting-wireless-security.h Loading commit data...
nm-setting-wireless.c Loading commit data...
nm-setting-wireless.h Loading commit data...
nm-setting-wpan.c Loading commit data...
nm-setting-wpan.h Loading commit data...
nm-setting.c Loading commit data...
nm-setting.h Loading commit data...
nm-simple-connection.c Loading commit data...
nm-simple-connection.h Loading commit data...
nm-team-utils.c Loading commit data...
nm-team-utils.h Loading commit data...
nm-utils-private.h Loading commit data...
nm-utils.c Loading commit data...
nm-utils.h Loading commit data...
nm-version.h Loading commit data...
nm-vpn-dbus-interface.h Loading commit data...
nm-vpn-editor-plugin.c Loading commit data...
nm-vpn-editor-plugin.h Loading commit data...
nm-vpn-plugin-info.c Loading commit data...
nm-vpn-plugin-info.h Loading commit data...