From f7c20c5984a7a78c0255984357f55fcce9ae980e Mon Sep 17 00:00:00 2001 From: Paul Colby Date: Fri, 3 Apr 2015 13:04:47 +1100 Subject: [PATCH] Correct the handling of the --unix option --- include/pcp-cpp/pmda.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/pcp-cpp/pmda.hpp b/include/pcp-cpp/pmda.hpp index e3d7565..319881a 100644 --- a/include/pcp-cpp/pmda.hpp +++ b/include/pcp-cpp/pmda.hpp @@ -441,6 +441,7 @@ class pmda { * \c false. * * @throw pcp::exception On error. + * @throw boost::program_options::error On parse error. */ virtual bool parse_command_line(const int argc, const char * const argv[], pmdaInterface& interface) @@ -464,6 +465,7 @@ class pmda { * \c false. * * @throw pcp::exception On error. + * @throw boost::program_options::error On parse error. */ virtual bool parse_command_line(const int argc, const char * const argv[], pmdaInterface& interface, @@ -575,7 +577,7 @@ class pmda { if (options.count("unix") > 0) { interface.version.two.ext->e_io = pmdaUnix; free_on_destruction.push(interface.version.two.ext->e_sockname = - strdup(options.at("pipe").as().c_str())); + strdup(options.at("unix").as().c_str())); } if (options.count("inet6") > 0) { // The pmdaIPv6 value was added to PCP in version 3.8.1. There is