Modify error code of security_auth_create_password_file method 99/324799/1 tizen
authorDongik Lee <dongik.lee@samsung.com>
Tue, 27 May 2025 02:56:45 +0000 (11:56 +0900)
committerDongik Lee <dongik.lee@samsung.com>
Tue, 27 May 2025 02:56:45 +0000 (11:56 +0900)
Change-Id: If49a31171b135cad35cfc95bc2bcb032f8ccc7fa

src/hal_backend_security_auth_api.cpp

index 13284cdfa129d800e1e5979bbf9a3734dc3b9efc..15d7a5180238af2dde140d31c9a18b5260f11cdc 100644 (file)
@@ -27,7 +27,7 @@ int security_auth_create_password_file(uid_t user_id,
 {
        LOGD("security_auth_create_password_file");
        hal_backend_security_auth *auth_instance = get_hal_backend_security_auth_instance(user_id, password_type);
 {
        LOGD("security_auth_create_password_file");
        hal_backend_security_auth *auth_instance = get_hal_backend_security_auth_instance(user_id, password_type);
-       return auth_instance ? HAL_SECURITY_AUTH_ERROR_NONE: HAL_SECURITY_AUTH_ERROR_HAL_INIT_FAIL;
+       return auth_instance ? HAL_SECURITY_AUTH_ERROR_NONE: HAL_SECURITY_AUTH_ERROR_UNKNOWN;
 }
 
 int security_auth_write_memory_to_file(uid_t user_id)
 }
 
 int security_auth_write_memory_to_file(uid_t user_id)