X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwgtpkg-install.c;fp=src%2Fwgtpkg-install.c;h=a405cfaa69d9ff712dbae5e1545f90aa19be0072;hb=32b15670d36b31b39a9ae2215ff0d1679e211169;hp=7b299f2cc7973e87b51c63e5a780cc4c47b644a5;hpb=cda8f0470953975c45c66b8f3b7249f36f064d78;p=src%2Fapp-framework-main.git diff --git a/src/wgtpkg-install.c b/src/wgtpkg-install.c index 7b299f2..a405cfa 100644 --- a/src/wgtpkg-install.c +++ b/src/wgtpkg-install.c @@ -71,6 +71,7 @@ static int check_temporary_constraints(const struct wgt_desc *desc) { int result = check_valid_string(desc->id, "id"); result |= check_valid_string(desc->version, "version"); + result |= check_valid_string(desc->ver, "ver"); result |= check_defined(desc->icons, "icon"); result |= check_defined(desc->content_src, "content"); if (result) @@ -119,7 +120,7 @@ static int move_widget(const char *root, const struct wgt_desc *desc, int force) char newdir[PATH_MAX]; int rc; - rc = snprintf(newdir, sizeof newdir, "%s/%s/%s", root, desc->id, desc->version); + rc = snprintf(newdir, sizeof newdir, "%s/%s/%s", root, desc->id, desc->ver); if (rc >= sizeof newdir) { ERROR("path to long in move_widget"); errno = EINVAL; @@ -136,7 +137,7 @@ static int install_icon(const struct wgt_desc *desc) int rc; create_directory(FWK_ICON_DIR, 0755, 1); - rc = snprintf(link, sizeof link, "%s/%s@%s", FWK_ICON_DIR, desc->id, desc->version); + rc = snprintf(link, sizeof link, "%s/%s@%s", FWK_ICON_DIR, desc->id, desc->ver); if (rc >= sizeof link) { ERROR("link to long in install_icon"); errno = EINVAL;