From: Otto Moerbeek Date: Thu, 11 Aug 2022 13:54:13 +0000 (+0200) Subject: Include chroot in socket dir error message X-Git-Tag: rec-4.8.0-alpha1~34^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11800%2Fhead;p=thirdparty%2Fpdns.git Include chroot in socket dir error message --- diff --git a/pdns/recursordist/rec-main.cc b/pdns/recursordist/rec-main.cc index f54e1da9e0..95aeffcbbe 100644 --- a/pdns/recursordist/rec-main.cc +++ b/pdns/recursordist/rec-main.cc @@ -714,6 +714,7 @@ static void checkSocketDir(Logr::log_t log) else { return; } + dir = ::arg()["chroot"] + dir; SLOG(g_log << Logger::Error << "Problem with socket directory " << dir << ": " << msg << "; see https://docs.powerdns.com/recursor/upgrade.html#x-to-4-3-0" << endl, log->error(Logr::Error, msg, "Problem with socket directory, see https://docs.powerdns.com/recursor/upgrade.html#x-to-4-3-0", "dir", Logging::Loggable(dir))); _exit(1);