From 87b9b80a55d3567e76fc86d3abc7f3cfd6d92e6f Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 25 Feb 2013 21:54:00 +0100 Subject: Fix shell command exit status message, for real. --- 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 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; } -- cgit v1.2.3