diff options
author | José Bollo <jose.bollo@iot.bzh> | 2015-12-15 11:20:08 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2015-12-15 11:20:08 +0100 |
commit | 6c6177fcf8fdcc62c42a18407e95c7577897e10c (patch) | |
tree | b1d73ddbc303522112d339ef70a5094dd0d7257c /src/wgtpkg-install.c | |
parent | f145b390adea074c40470b677d8721877520150a (diff) |
in progress
Change-Id: Ida682c87abc3413e0e84c56f60d54e1c5409fd3a
Diffstat (limited to 'src/wgtpkg-install.c')
-rw-r--r-- | src/wgtpkg-install.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wgtpkg-install.c b/src/wgtpkg-install.c index 6a4a865..096903b 100644 --- a/src/wgtpkg-install.c +++ b/src/wgtpkg-install.c @@ -28,6 +28,7 @@ #include "wgt.h" #include "wgt-info.h" #include "secmgr-wrap.h" +#include "utils-dir.h" static int check_defined(const void *data, const char *name) { @@ -126,7 +127,8 @@ static int install_icon(const struct wgt_desc *desc) char target[PATH_MAX]; int rc; - rc = snprintf(link, sizeof link, "%s/%s@%s", ICONDESTDIR, desc->id, desc->version); + create_directory(FWK_ICON_DIR, 0755, 1); + rc = snprintf(link, sizeof link, "%s/%s@%s", FWK_ICON_DIR, desc->id, desc->version); if (rc >= sizeof link) { ERROR("link to long in install_icon"); errno = EINVAL; @@ -221,6 +223,7 @@ void install_widget(const char *wgtfile, const char *root, int force) NOTICE("-- INSTALLING widget %s --", wgtfile); /* workdir */ + create_directory(root, 0755, 1); if (make_workdir_base(root, "TMP", 0)) { ERROR("failed to create a working directory"); goto error1; |