projects
/
connman
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add error message for network and device storing failures
[connman]
/
src
/
network.c
diff --git
a/src/network.c
b/src/network.c
index
85b601d
..
f5e512e
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-1281,7
+1281,8
@@
update:
data = g_key_file_to_data(keyfile, &length, NULL);
- g_file_set_contents(pathname, data, length, NULL);
+ if (g_file_set_contents(pathname, data, length, NULL) == FALSE)
+ connman_error("Failed to store network information");
done:
g_free(data);