apply alternative for no util-lib 45/235845/1
authorYoungjae Shin <yj99.shin@samsung.com>
Wed, 10 Jun 2020 08:00:01 +0000 (17:00 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Wed, 10 Jun 2020 08:00:01 +0000 (17:00 +0900)
Change-Id: I2010d30b84025b7cea4e912cc945a2b88a1f7665

src/sst_utils_wrapper.c

index c0149d2..e6f5aea 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <dlfcn.h>
 #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");