From: Youngjae Shin Date: Wed, 10 Jun 2020 08:00:01 +0000 (+0900) Subject: apply alternative for no util-lib X-Git-Tag: submit/tizen/20200615.073104~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F45%2F235845%2F1;p=platform%2Fcore%2Fapi%2Fsystem-settings.git apply alternative for no util-lib Change-Id: I2010d30b84025b7cea4e912cc945a2b88a1f7665 --- diff --git a/src/sst_utils_wrapper.c b/src/sst_utils_wrapper.c index c0149d2..e6f5aea 100644 --- a/src/sst_utils_wrapper.c +++ b/src/sst_utils_wrapper.c @@ -17,6 +17,7 @@ #include #include "sst.h" +#include "sst_misc.h" static void *sst_utils_handle; static const char* const sst_utils_library = SETTING_UTILS_SO_FILE_PATH; @@ -109,7 +110,7 @@ bool sstu_is_valid_image(char *path) void *handle = _utils_load_lib(); if (NULL == handle) { ERR("No Utils Library Handle"); - return false; + return sst_misc_exist(path); } fn_impl = dlsym(handle, "sstu_is_valid_image");