From d9fc3340986c9844c927520c3ea2afa4150bc5f2 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 2 Aug 2015 10:26:05 -0400 Subject: [PATCH] Context: Added filter prep for write commands that don't instantiate Filter --- src/Context.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Context.cpp b/src/Context.cpp index 9edbbc495..813c6a9ad 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -453,7 +453,11 @@ int Context::dispatch (std::string &out) // This is something that is only needed for write commands with no other // filter processing. - cli2.prepareFilter (); + if (! c->read_only () && + ! c->accepts_filter ()) + { + cli2.prepareFilter (); + } return c->execute (out); }