From 312884dfc56d80344900bdd474397388e65125f1 Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Fri, 14 Mar 2014 20:48:33 -0400 Subject: [PATCH] When execute_buffer() is passed an invalid command, print the bad command when logging the error. --- ndhc/ifchd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndhc/ifchd.c b/ndhc/ifchd.c index 557cddf..308a334 100644 --- a/ndhc/ifchd.c +++ b/ndhc/ifchd.c @@ -320,7 +320,7 @@ static void process_client_pipe(void) } if (execute_buffer(buf) == -1) { - log_line("ifch: execute_buffer was passed invalid commands"); + log_line("ifch: execute_buffer was passed invalid commands: '%s'", buf); exit(EXIT_FAILURE); } }