From: Aki Tuomi Date: Wed, 3 Sep 2014 07:57:34 +0000 (+0300) Subject: Convert int to string for concatenation to exception, fixes #1564 X-Git-Tag: auth-3.4.0-rc2~19^2~4^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1697%2Fhead;p=thirdparty%2Fpdns.git Convert int to string for concatenation to exception, fixes #1564 --- diff --git a/pdns/nproxy.cc b/pdns/nproxy.cc index 8ae4b6e9cd..44b916e43e 100644 --- a/pdns/nproxy.cc +++ b/pdns/nproxy.cc @@ -272,7 +272,7 @@ try if(g_vm.count("setgid")) { if(setgid(g_vm["setgid"].as()) < 0) - throw runtime_error("while changing gid to "+g_vm["setgid"].as()); + throw runtime_error("while changing gid to "+boost::lexical_cast(g_vm["setgid"].as())); syslogFmt(boost::format("Changed gid to %d") % g_vm["setgid"].as()); if(setgroups(0, NULL) < 0) throw runtime_error("while dropping supplementary groups"); @@ -280,7 +280,7 @@ try if(g_vm.count("setuid")) { if(setuid(g_vm["setuid"].as()) < 0) - throw runtime_error("while changing uid to "+g_vm["setuid"].as()); + throw runtime_error("while changing uid to "+boost::lexical_cast(g_vm["setuid"].as())); syslogFmt(boost::format("Changed uid to %d") % g_vm["setuid"].as()); }