SECURE_LOGI("The result file of GET: %s", path);
/* TODO - shoud be changed to solve security concerns */
- fd = open(path, O_RDONLY, 644);
+ fd = open(path, O_RDONLY, 0644);
if (fd == -1)
{
SECURE_LOGE("unable to open update_map file: %d", errno);
SECURE_LOGI("The request file of INSERT/UPDATE: %s", path);
/* TODO - shoud be changed to solve security concerns */
- fd = open(path, O_RDONLY, 644);
+ fd = open(path, O_RDONLY, 0644);
if (fd == -1) {
SECURE_LOGE("unable to open insert_map file: %d", errno);
return b;
client_pkgid = __get_client_pkgid(b);
/* TODO - shoud be changed to solve security concerns */
- fd = open(path, O_WRONLY | O_CREAT, 644);
+ fd = open(path, O_WRONLY | O_CREAT, 0644);
if (fd == -1) {
SECURE_LOGE("unable to open insert_map file: %d", errno);
free(client_pkgid);
client_pkgid = __get_client_pkgid(b);
/* TODO - shoud be changed to solve security concerns */
- fd = open(path, O_WRONLY | O_CREAT, 644);
+ fd = open(path, O_WRONLY | O_CREAT, 0644);
if (fd == -1) {
SECURE_LOGE("unable to open insert_map file: %d", errno);
free(client_pkgid);
const char *caller_req_id = bundle_get_val(b, OSP_K_REQUEST_ID);
char *result_path = calloc(RESULT_PATH_MAX, sizeof(char));
- snprintf(result_path, RESULT_PATH_MAX, "%s/%s_%s", DATACONTROL_RESULT_FILE_PREFIX, caller, caller_req_id);
+ snprintf(result_path, RESULT_PATH_MAX, "%s%s%s", DATACONTROL_RESULT_FILE_PREFIX, caller, caller_req_id);
SECURE_LOGI("result file path: %s", result_path);
cursor->resultset_current_offset = 0;
cursor->resultset_current_row_count = 0;
/* TODO - shoud be changed to solve security concerns */
- cursor->resultset_fd = open(path, O_RDONLY, 644);
+ cursor->resultset_fd = open(path, O_RDONLY, 0644);
if (cursor->resultset_fd == -1)
{
SECURE_LOGE("unable to open resultset file(%s): %d", path, errno);
char *provider_pkgid = __get_provider_pkgid(provider->provider_id);
/* TODO - shoud be changed to solve security concerns */
- fd = open(insert_map_file, O_WRONLY | O_CREAT, 644);
+ fd = open(insert_map_file, O_WRONLY | O_CREAT, 0644);
if (fd == -1) {
SECURE_LOGE("unable to open insert_map file: %d", errno);
free(provider_pkgid);
char *provider_pkgid = __get_provider_pkgid(provider->provider_id);
/* TODO - shoud be changed to solve security concerns */
- fd = open(update_map_file, O_WRONLY | O_CREAT, 644);
+ fd = open(update_map_file, O_WRONLY | O_CREAT, 0644);
if (fd == -1)
{
SECURE_LOGE("unable to open update_map file: %d", errno);