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-installer.c | |
parent | f145b390adea074c40470b677d8721877520150a (diff) |
in progress
Change-Id: Ida682c87abc3413e0e84c56f60d54e1c5409fd3a
Diffstat (limited to 'src/wgtpkg-installer.c')
-rw-r--r-- | src/wgtpkg-installer.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/wgtpkg-installer.c b/src/wgtpkg-installer.c index 62807aa..3d9c237 100644 --- a/src/wgtpkg-installer.c +++ b/src/wgtpkg-installer.c @@ -29,7 +29,7 @@ #include "verbose.h" #include "wgtpkg.h" -static const char appname[] = "wgtpkg-install"; +static const char appname[] = "wgtpkg-installer"; static const char *root; static int force; @@ -61,7 +61,6 @@ static struct option options[] = { int main(int ac, char **av) { int i; - char *wpath; openlog(appname, LOG_PERROR, LOG_AUTH); @@ -104,19 +103,9 @@ int main(int ac, char **av) return 1; } - /* canonic names for files */ + /* install widgets */ av += optind; - for (i = 0 ; av[i] != NULL ; i++) { - wpath = realpath(av[i], NULL); - if (wpath == NULL) { - ERROR("error while getting realpath of %dth widget: %s", i+1, av[i]); - return 1; - } - av[i] = wpath; - } root = *av++; - - /* install widgets */ for ( ; *av ; av++) install_widget(*av, root, force); |