NetworkManager/shared/nm-keyfile
Thomas Haller 93285a465f
keyfile: refactor writing of G_TYPE_ARRAY list of unsigned integers
Keyfile handles GObject properties of type G_TYPE_ARRAY as a GArray
of unsigned ints. That is correct, because all our properties of this
GType happen to be of this kind.

However, then the function was using nm_keyfile_plugin_kf_set_integer_list(),
which only can handle signed integers. There was thus an assertion that all
integers were non-negative. Which, probably was also correct, because NMSettingDcb
would validate that all values of such kind are in fact positive. Anyway, that
is an unexpected limitation (if not a bug).

Fix that by handling the array as unsigned list of integers.

Also, since glib doesn't provide an API for storing lists of unsigend
integers, we have to implement our own. but that is no loss. We probably
do it better anyway.
2020-05-04 12:47:11 +02:00
..
nm-keyfile-internal.h libnm/keyfile: build keyfile code as separate GPL licensed internal library 2020-01-07 13:17:47 +01:00
nm-keyfile-utils.c keyfile: refactor writing of G_TYPE_ARRAY list of unsigned integers 2020-05-04 12:47:11 +02:00
nm-keyfile-utils.h keyfile: refactor writing of G_TYPE_ARRAY list of unsigned integers 2020-05-04 12:47:11 +02:00
nm-keyfile.c keyfile: refactor writing of G_TYPE_ARRAY list of unsigned integers 2020-05-04 12:47:11 +02:00