From 6a6f29c95a183c6d49e5f5a03b29a6a802a6e457 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Thu, 11 Aug 2022 15:54:13 +0200 Subject: [PATCH] Include chroot in socket dir error message --- pdns/recursordist/rec-main.cc | 1 + 1 file changed, 1 insertion(+) 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); -- 2.47.2