From deb3d935abacb4c9d4931f77cd0912e58ca44a64 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Wed, 3 Sep 2014 10:57:34 +0300 Subject: [PATCH] Convert int to string for concatenation to exception, fixes #1564 --- pdns/nproxy.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/nproxy.cc b/pdns/nproxy.cc index 8ae4b6e9c..44b916e43 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()); } -- 2.49.0