From 3d73d2d2db601f05896dafe372f41b4995b12cec Mon Sep 17 00:00:00 2001 From: Rafal Krypa Date: Mon, 2 Dec 2013 15:04:37 +0100 Subject: [PATCH] smackctl: fix reporting "unknown action" (regression in ce452ab) 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 --- utils/smackctl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/smackctl.c b/utils/smackctl.c index f1d1586..cdfb21d 100644 --- 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); } -- 2.7.4