projects
/
platform
/
upstream
/
smack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf442a5
)
smackctl: fix reporting "unknown action" (regression in ce452ab)
author
Rafal Krypa
<r.krypa@samsung.com>
Mon, 2 Dec 2013 14:04:37 +0000
(15:04 +0100)
committer
Rafal Krypa
<r.krypa@samsung.com>
Mon, 2 Dec 2013 15:32:03 +0000
(16:32 +0100)
Running "smackctl apply" and "smackctl clear" ended with error and
message about unknown action, although the action was known and
performed successfully.
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
utils/smackctl.c
patch
|
blob
|
history
diff --git
a/utils/smackctl.c
b/utils/smackctl.c
index
f1d1586
..
cdfb21d
100644
(file)
--- a/
utils/smackctl.c
+++ b/
utils/smackctl.c
@@
-65,8
+65,10
@@
int main(int argc, char **argv)
else
printf("SmackFS is not mounted.\n");
exit(0);
+ } else {
+ fprintf(stderr, "Uknown action: %s\n", argv[1]);
+ exit(1);
}
- fprintf(stderr, "Uknown action: %s\n", argv[1]);
- exit(1);
+ exit(0);
}