return ACCOUNT_ERROR_PERMISSION_DENIED;
}
+ uid_t uid = (int)getuid();
+ if (uid < 5001)
+ uid = 5001;
+
GVariant *account_variant = NULL;
- bool is_success = account_manager_call_account_query_account_by_account_id_sync(acc_mgr, account_db_id, (int)getuid(), &account_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_account_id_sync(acc_mgr, account_db_id, (int)uid, &account_variant, NULL, &error);
_account_manager_release_instance();
int error_code = _account_get_error_code(is_success, error);
return ACCOUNT_ERROR_PERMISSION_DENIED;
}
+ uid_t uid = (int)getuid();
+ if (uid < 5001)
+ uid = 5001;
+
GVariant *account_list_variant = NULL;
- bool is_success = account_manager_call_account_query_account_by_user_name_sync(acc_mgr, user_name, (int)getuid(), &account_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_user_name_sync(acc_mgr, user_name, (int)uid, &account_list_variant, NULL, &error);
_account_manager_release_instance();
int error_code = _account_get_error_code(is_success, error);
return ACCOUNT_ERROR_DB_NOT_OPENED;
}
- bool is_success = account_manager_call_account_query_account_by_package_name_sync(acc_mgr, package_name, (int)getuid(), &account_list_variant, NULL, &error);
+ uid = (int)getuid();
+ if (uid < 5001)
+ uid = 5001;
+
+ bool is_success = account_manager_call_account_query_account_by_package_name_sync(acc_mgr, package_name, (int)uid, &account_list_variant, NULL, &error);
_account_manager_release_instance();
int error_code = _account_get_error_code(is_success, error);
return ACCOUNT_ERROR_PERMISSION_DENIED;
}
+ uid_t uid = (int)getuid();
+ if (uid < 5001)
+ uid = 5001;
+
GVariant *account_list_variant = NULL;
- bool is_success = account_manager_call_account_query_account_by_capability_sync(acc_mgr, capability_type, capability_value, (int)getuid(), &account_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_capability_sync(acc_mgr, capability_type, capability_value, (int)uid, &account_list_variant, NULL, &error);
_account_manager_release_instance();
int error_code = _account_get_error_code(is_success, error);
return ACCOUNT_ERROR_PERMISSION_DENIED;
}
+ uid_t uid = (int)getuid();
+ if (uid < 5001)
+ uid = 5001;
+
GVariant *account_list_variant = NULL;
- bool is_success = account_manager_call_account_query_account_by_capability_type_sync(acc_mgr, capability_type, (int)getuid(), &account_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_account_by_capability_type_sync(acc_mgr, capability_type, (int)uid, &account_list_variant, NULL, &error);
_account_manager_release_instance();
int error_code = _account_get_error_code(is_success, error);
return ACCOUNT_ERROR_PERMISSION_DENIED;
}
+ uid_t uid = (int)getuid();
+ if (uid < 5001)
+ uid = 5001;
+
GVariant *capability_list_variant = NULL;
- bool is_success = account_manager_call_account_query_capability_by_account_id_sync(acc_mgr, account_id, (int)getuid(), &capability_list_variant, NULL, &error);
+ bool is_success = account_manager_call_account_query_capability_by_account_id_sync(acc_mgr, account_id, (int)uid, &capability_list_variant, NULL, &error);
_account_manager_release_instance();
int error_code = _account_get_error_code(is_success, error);