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
/
device.c
diff --git
a/src/device.c
b/src/device.c
index
e36aa6d
..
bb9abf5
100644
(file)
--- a/
src/device.c
+++ b/
src/device.c
@@
-1913,7
+1913,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 device information");
done:
g_free(data);