NetworkManager/clients/common
Thomas Haller b216abb012 shared,all: return boolean success from nm_utils_file_get_contents()
... and nm_utils_fd_get_contents() and nm_utils_file_set_contents().

Don't mix negative errno return value with a GError output. Instead,
return a boolean result indicating success or failure.

Also, optionally

  - output GError

  - set out_errsv to the positive errno (or 0 on success)

Obviously, the return value and the output arguments (contents, length,
out_errsv, error) must all agree in their success/failure result.
That means, you may check any of the return value, out_errsv, error, and
contents to reliably detect failure or success.

Also note that out_errsv gives the positive(!) errno. But you probably
shouldn't care about the distinction and use nm_errno_native() either
way to normalize the value.
2019-08-08 11:59:59 +02:00
..
tests all: drop empty first line from sources 2019-06-11 10:15:06 +02:00
meson.build shared: build helper "libnm-libnm-core-{intern|aux}.la" library for libnm-core 2019-04-18 20:07:44 +02:00
nm-client-utils.c cli: don't treat empty string as valid number in nmc_string_to_uint_base() 2019-03-25 09:12:32 +01:00
nm-client-utils.h shared: build helper "libnm-libnm-core-{intern|aux}.la" library for libnm-core 2019-04-18 20:07:44 +02:00
nm-meta-setting-access.c cli: allow completing filenames 2019-05-06 10:10:00 +02:00
nm-meta-setting-access.h cli: allow completing filenames 2019-05-06 10:10:00 +02:00
nm-meta-setting-desc.c cli/trivial: align property definitions with spaces and not with tabs 2019-08-06 15:46:12 +02:00
nm-meta-setting-desc.h clients: Wi-Fi Mesh support 2019-07-29 11:00:24 +02:00
nm-polkit-listener.c all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-polkit-listener.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-secret-agent-simple.c all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-secret-agent-simple.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
nm-vpn-helpers.c shared,all: return boolean success from nm_utils_file_get_contents() 2019-08-08 11:59:59 +02:00
nm-vpn-helpers.h all: drop emacs file variables from source files 2019-06-11 10:04:00 +02:00
settings-docs.h.in wireguard: support configuring policy routing to avoid routing loops 2019-07-29 20:45:49 +02:00
settings-docs.xsl cli: fix marking settings docs for translation 2017-04-23 23:45:02 +02:00