Remove hardcoded path for multiuser support
[platform/core/system/sync-agent.git] / src / framework / utility / fw_file.c
index 66e4c23..a68cf9b 100755 (executable)
@@ -23,6 +23,8 @@
 
 #include "fsapi/operation.h"
 
+#include <tzplatform_config.h>
+
 #ifndef EXPORT_API
 #define EXPORT_API __attribute__ ((visibility("default")))
 #endif
@@ -32,7 +34,7 @@
 #define LOG_TAG "AF_UTIL_FILE"
 #endif
 
-#define UTIL_DEFAULT_ACCOUNT_PLUGIN_FOLDER "/opt/data/sync-agent/db"
+#define UTIL_DEFAULT_ACCOUNT_PLUGIN_FOLDER tzplatform_mkpath(TZ_SYS_DATA,"sync-agent/db")
 
 EXPORT_API int sync_agent_set_int_into_file(char *file_path, int value)
 {