Code Review
/
src
/
app-framework-main.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix bug in mustach.c
[src/app-framework-main.git]
/
src
/
wgtpkg-installer.c
diff --git
a/src/wgtpkg-installer.c
b/src/wgtpkg-installer.c
index
ea08fce
..
855e28d
100644
(file)
--- a/
src/wgtpkg-installer.c
+++ b/
src/wgtpkg-installer.c
@@
-1,5
+1,5
@@
/*
/*
- Copyright 2015 IoT.bzh
+ Copyright 2015
, 2016, 2017
IoT.bzh
author: José Bollo <jose.bollo@iot.bzh>
author: José Bollo <jose.bollo@iot.bzh>
@@
-66,7
+66,7
@@
static struct option options[] = {
/* install the widgets of the list */
int main(int ac, char **av)
{
/* install the widgets of the list */
int main(int ac, char **av)
{
- int i;
+ int i
, rc
;
struct wgt_info *ifo;
LOGAUTH(appname);
struct wgt_info *ifo;
LOGAUTH(appname);
@@
-93,7
+93,11
@@
int main(int ac, char **av)
verbosity++;
break;
case 'p':
verbosity++;
break;
case 'p':
- grant_permission_list(optarg);
+ rc = grant_permission_list(optarg);
+ if (rc < 0) {
+ ERROR("Can't set granted permission list");
+ exit(1);
+ }
break;
case ':':
ERROR("missing argument value");
break;
case ':':
ERROR("missing argument value");