summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-02-25 21:47:51 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-02-25 21:47:51 +0100
commit2041c0c21ce8db1b191438a071cfed96125d830c (patch)
treeba50a116f0478a056e46b85ecadb18cba11f7df1 /src
parentf19b8c4d82380ae0defb6c6041270d815164b0d2 (diff)
downloadfastd-2041c0c21ce8db1b191438a071cfed96125d830c.tar
fastd-2041c0c21ce8db1b191438a071cfed96125d830c.zip
Fix shell exit status warning condition
Diffstat (limited to 'src')
-rw-r--r--src/shell.c2
1 files changed, 1 insertions, 1 deletions
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;