From e6991684436a466509c6a0537118968398b7760b Mon Sep 17 00:00:00 2001 From: Youngjae Shin Date: Wed, 10 Jun 2020 17:00:01 +0900 Subject: [PATCH] apply alternative for no util-lib Change-Id: I2010d30b84025b7cea4e912cc945a2b88a1f7665 --- src/sst_utils_wrapper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); -- 2.7.4