From 2041c0c21ce8db1b191438a071cfed96125d830c Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 25 Feb 2013 21:47:51 +0100 Subject: Fix shell exit status warning condition --- src/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shell.c') diff --git a/src/shell.c b/src/shell.c index bcc22e1..d62bbf0 100644 --- a/src/shell.c +++ b/src/shell.c @@ -111,7 +111,7 @@ bool fastd_shell_exec(fastd_context_t *ctx, const fastd_peer_t *peer, const char else { if (WIFSIGNALED(result)) pr_error(ctx, "command exited with signal %i", WTERMSIG(result)); - else if (result) + else if (WEXITSTATUS(result)) pr_warn(ctx, "command exited with status %i", WEXITSTATUS(ret)); else ok = true; -- cgit v1.2.3