pkgmgrinfo_pkginfo_h handle = NULL;
const char* app_root_path = NULL;
const char *dest_path = NULL;
- int ret;
+ int ret, deletedir_len;
uid_t uid = 0;
elm_init(0, NULL);
goto FAIL;
}
- sprintf(deletedir,"%s/%s", dest_path, appid);
+ /* It must contain "/" character at end of the delete dir path.
+ * It prevents file path comparing issues when there are many similar path. */
+ sprintf(deletedir,"%s/%s/", dest_path, appid);
//check if current using font is same with uninstall font
- int deletedir_len = strlen(deletedir);
+ deletedir_len = strlen(deletedir);
pat = FcPatternCreate();
if (pat == NULL)