summaryrefslogtreecommitdiff
path: root/src/settings/plugins/keyfile/nms-keyfile-utils.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-08-01 10:52:20 +0200
committerThomas Haller <thaller@redhat.com>2019-08-08 12:03:15 +0200
commit4e36521d4c82b2967628def8125a83ecd13bfd8c (patch)
treef7817027ebcbaab8f24283bbe98bae7799c9bd55 /src/settings/plugins/keyfile/nms-keyfile-utils.h
parentb216abb012b97a7e0e50b969e4a04c8b11a4cbe9 (diff)
downloadNetworkManager-th/settings-improvements.tar.gz
settings: return errno from nms_keyfile_nmmeta_write() for better loggingth/settings-improvements
I encountered a failure in the log <trace> [1564647990.7822] keyfile: commit: deleting nmmeta file "/etc/NetworkManager/system-connections/35370b0b-e53b-42ea-9fe3-f1b1d552343b.nmmeta" failed <trace> [1564647990.7822] keyfile: commit: deleting nmmeta file "/etc/NetworkManager/system-connections/35370b0b-e53b-42ea-9fe3-f1b1d552343b.nmmeta" simulated I think that was due to SELinux (rh #1738010). Let nms_keyfile_nmmeta_write() return an errno code so we can log more information about the failure.
Diffstat (limited to 'src/settings/plugins/keyfile/nms-keyfile-utils.h')
-rw-r--r--src/settings/plugins/keyfile/nms-keyfile-utils.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/settings/plugins/keyfile/nms-keyfile-utils.h b/src/settings/plugins/keyfile/nms-keyfile-utils.h
index 723c443625..768f95d95d 100644
--- a/src/settings/plugins/keyfile/nms-keyfile-utils.h
+++ b/src/settings/plugins/keyfile/nms-keyfile-utils.h
@@ -66,12 +66,12 @@ gboolean nms_keyfile_nmmeta_read_from_file (const char *full_filename,
char **out_loaded_path,
char **out_shadowed_storage);
-gboolean nms_keyfile_nmmeta_write (const char *dirname,
- const char *uuid,
- const char *loaded_path,
- gboolean loaded_path_allow_relative,
- const char *shadowed_storage,
- char **out_full_filename);
+int nms_keyfile_nmmeta_write (const char *dirname,
+ const char *uuid,
+ const char *loaded_path,
+ gboolean loaded_path_allow_relative,
+ const char *shadowed_storage,
+ char **out_full_filename);
/*****************************************************************************/