summaryrefslogtreecommitdiff
path: root/libnm-core/nm-setting-ethtool.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-08-01 10:59:36 +0200
committerThomas Haller <thaller@redhat.com>2019-08-08 10:53:03 +0200
commit1bad35061fb3d0807048601b404619ad816be28b (patch)
tree112b58d4a4199f328dab4ae02d7309913a3f059c /libnm-core/nm-setting-ethtool.c
parent041a95229722c57a21492f69d3fbb9805bfe05e6 (diff)
downloadNetworkManager-1bad35061fb3d0807048601b404619ad816be28b.tar.gz
shared: let nm_utils_file_set_contents() return a errno error code
nm_utils_file_set_contents() is a re-implementation of g_file_set_contents(), as such it returned merely a boolean success value. It's sometimes interesting to get the native error code. Let the function deviate from glib's original g_file_set_contents() and return the error code (as negative value) instead. This requires all callers to change. Also, it's potentially a dangerous change, as this is easy to miss. Note that nm_utils_file_get_contents() also returns an errno, and already deviates from g_file_get_contents() in the same way. This patch resolves at least the inconsistency with nm_utils_file_get_contents().
Diffstat (limited to 'libnm-core/nm-setting-ethtool.c')
0 files changed, 0 insertions, 0 deletions