From 917bf6762c2d610075c9604bdfb6d40c4be11709 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Thu, 31 Jul 2014 20:46:44 -0400 Subject: [PATCH] client: Remove the strerror() call from switcher_exec with regards to the task_debug output. For the things switcher does the exit code is not an errno value. --- client/sandbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/sandbox.cpp b/client/sandbox.cpp index f8301d708e..df215e80f0 100644 --- a/client/sandbox.cpp +++ b/client/sandbox.cpp @@ -151,7 +151,7 @@ int switcher_exec(const char *util_filename, const char* cmdline) { msg_printf(0, MSG_INTERNAL_ERROR, "[task_debug] failure in switcher_exec"); msg_printf(0, MSG_INTERNAL_ERROR, "[task_debug] switcher: %s", util_path); msg_printf(0, MSG_INTERNAL_ERROR, "[task_debug] command: %s", command); - msg_printf(0, MSG_INTERNAL_ERROR, "[task_debug] exit code: %s (%d)", strerror(retval), retval); + msg_printf(0, MSG_INTERNAL_ERROR, "[task_debug] exit code: %d", retval); msg_printf(0, MSG_INTERNAL_ERROR, "[task_debug] stdout: %s", output_out.c_str()); msg_printf(0, MSG_INTERNAL_ERROR, "[task_debug] stderr: %s", output_err.c_str()); }