NetworkManager/src/settings
Thomas Haller 7e49f4a199 all: use wrappers for g_ascii_strtoll(), g_ascii_strtoull(), g_ascii_strtod()
Sometimes these function may set errno to unexpected values like EAGAIN.
This causes confusion. Avoid that by using our own wrappers that retry
in that case. For example, in rhbz#1797915 we have failures like:

    errno = 0;
    v = g_ascii_strtoll ("10", 0, &end);
    if (errno != 0)
        g_assert_not_reached ();

as g_ascii_strtoll() would return 10, but also set errno to EAGAIN.

Work around that by using wrapper functions that retry. This certainly
should be fixed in glib (or glibc), but the issues are severe enough to
warrant a workaround.

Note that our workarounds are very defensive. We only retry 2 times, if
we get an unexpected errno value. This is in the hope to recover from
a spurious EAGAIN. It won't recover from other errors.

https://bugzilla.redhat.com/show_bug.cgi?id=1797915
2020-04-01 17:18:37 +02:00
..
plugins all: use wrappers for g_ascii_strtoll(), g_ascii_strtoull(), g_ascii_strtod() 2020-04-01 17:18:37 +02:00
nm-agent-manager.c all: drop explicit casts from _GET_PRIVATE() macro calls 2020-02-14 11:04:46 +01:00
nm-agent-manager.h agent-manager: let nm_settings_connection_check_permission() check all secret-agents searching for permission 2019-12-31 02:13:45 +01:00
nm-secret-agent.c shared: drop _STATIC variant of macros that define functions 2020-02-13 17:17:07 +01:00
nm-secret-agent.h agent-manager: fix races registering secret agent and track auth-chain per agent 2019-12-31 02:13:45 +01:00
nm-settings-connection.c all: use nm_clear_pointer() instead of g_clear_pointer() 2020-03-23 11:22:38 +01:00
nm-settings-connection.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-settings-plugin.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-settings-plugin.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-settings-storage.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-settings-storage.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-settings-utils.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-settings-utils.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-settings.c core: prevent multiple attempts to create default wired connection 2020-03-28 11:01:05 +01:00
nm-settings.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00