summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-02-25 21:54:00 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-02-25 21:54:00 +0100
commit87b9b80a55d3567e76fc86d3abc7f3cfd6d92e6f (patch)
treee4ae110f288e430273ecfcc468b6fb51dc5571b1
parent2041c0c21ce8db1b191438a071cfed96125d830c (diff)
downloadfastd-87b9b80a55d3567e76fc86d3abc7f3cfd6d92e6f.tar
fastd-87b9b80a55d3567e76fc86d3abc7f3cfd6d92e6f.zip
Fix shell command exit status message, for real.
-rw-r--r--src/shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell.c b/src/shell.c
index d62bbf0..93a07d6 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -112,7 +112,7 @@ bool fastd_shell_exec(fastd_context_t *ctx, const fastd_peer_t *peer, const char
if (WIFSIGNALED(result))
pr_error(ctx, "command exited with signal %i", WTERMSIG(result));
else if (WEXITSTATUS(result))
- pr_warn(ctx, "command exited with status %i", WEXITSTATUS(ret));
+ pr_warn(ctx, "command exited with status %i", WEXITSTATUS(result));
else
ok = true;
}