_ERR("pkgmgr_installer_info_get_target_uid() fail");
return ACCOUNT_ERROR_DB_NOT_OPENED;
}
+ /* Workaround for internal UTC */
+ if (uid == 0)
+ uid = getuid();
+
bool is_success = account_manager_call_account_query_account_by_account_id_sync(acc_mgr, account_id, (int)uid, &account_serialized_old, NULL, &error);
if (!is_success) {
feature_data = (provider_feature_s *)iter->data;
if (callback(feature_data->app_id, feature_data->key, user_data) != TRUE) {
- ACCOUNT_DEBUG("Callback func returs FALSE, its iteration is stopped!!!!\n");
+ ACCOUNT_DEBUG("Callback func returns FALSE, its iteration is stopped!!!!\n");
return ACCOUNT_ERROR_NONE;
}
}
return ACCOUNT_ERROR_DB_NOT_OPENED;
}
+ /* Workaround for internal UTC */
+ if (uid == 0)
+ uid = getuid();
+
bool is_success = account_manager_call_account_type_add_sync(acc_mgr, account_type_serialized, (int)uid, &db_id, NULL, &error);
_account_manager_release_instance();
_ERR("pkgmgr_installer_info_get_target_uid() fail");
return ACCOUNT_ERROR_DB_NOT_OPENED;
}
+
+ /* Workaround for internal UTC */
+ if (uid == 0)
+ uid = getuid();
+
bool is_success = account_manager_call_account_type_delete_by_app_id_sync(acc_mgr, app_id, (int)uid, NULL, &error);
_account_manager_release_instance();
return ACCOUNT_ERROR_DB_NOT_OPENED;
}
+ /* Workaround for internal UTC */
+ if (uid == 0)
+ uid = getuid();
+
if (uid != OWNER_ROOT && uid != GLOBAL_USER) {
ACCOUNT_ERROR("global db open fail. user not both root or global user");
return ACCOUNT_ERROR_PERMISSION_DENIED;
_INFO("account_manager_account_type_add start");
guint pid = getpid();
- _INFO("client Id = [%u]", pid);
+ _INFO("client pid = [%u]", pid);
return_code = _account_global_db_open(1);
if (return_code != ACCOUNT_ERROR_NONE) {
return ACCOUNT_ERROR_DB_NOT_OPENED;
}
+ /* Workaround for internal UTC */
+ if (uid == 0)
+ uid = getuid();
+
if (uid != OWNER_ROOT && uid != GLOBAL_USER) {
_ERR("current process is not root user nor global user, uid=%d", uid);
goto RETURN;
return ACCOUNT_ERROR_DB_NOT_OPENED;
}
- if (uid != OWNER_ROOT || uid != GLOBAL_USER) {
+ if (uid != OWNER_ROOT && uid != GLOBAL_USER) {
_ERR("current process user is not root, uid=%d", uid);
return_code = ACCOUNT_ERROR_PERMISSION_DENIED;
goto RETURN;