summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/module.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/module.c b/src/module.c
index 10450c2..b5d5306 100644
--- a/src/module.c
+++ b/src/module.c
@@ -184,10 +184,13 @@ static int __get_ug_info(const char *name, char **ug_file_path)
pkgmgrinfo_appinfo_destroy_appinfo(appinfo);
return -1;
}
- snprintf(ug_file, PATH_MAX, "%s/lib/ug/libug-%s.so", res_path, name);
+ snprintf(ug_file, PATH_MAX, "%slib/ug/libug-%s.so", res_path, name);
if (!__file_exist(ug_file))
goto out_func;
- snprintf(ug_file, PATH_MAX, "%s/lib/ug/lib-%s.so", res_path, name);
+ snprintf(ug_file, PATH_MAX, "%slib/ug/lib-%s.so", res_path, name);
+ if (!__file_exist(ug_file))
+ goto out_func;
+ snprintf(ug_file, PATH_MAX, "%slib/ug/lib%s.so", res_path, name);
if (!__file_exist(ug_file))
goto out_func;