projects
/
platform
/
upstream
/
connman.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated connman to version 1.35
[platform/upstream/connman.git]
/
src
/
storage.c
diff --git
a/src/storage.c
b/src/storage.c
old mode 100644
(file)
new mode 100755
(executable)
index
5e877ef
..
50c8e95
--- a/
src/storage.c
+++ b/
src/storage.c
@@
-23,6
+23,7
@@
#include <config.h>
#endif
#include <config.h>
#endif
+#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
@@
-71,6
+72,19
@@
static int storage_save(GKeyFile *keyfile, char *pathname)
ret = -EIO;
}
ret = -EIO;
}
+#if defined TIZEN_EXT
+ {
+ FILE *fp = NULL;
+ fp = fopen(pathname, "a+");
+ if(fp){
+ fflush(fp);
+ fsync(fp->_fileno);
+ fclose(fp);
+ DBG("sync the file to disk");
+ }
+ }
+#endif
+
g_free(data);
return ret;
g_free(data);
return ret;