]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Include chroot in socket dir error message 11800/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 11 Aug 2022 13:54:13 +0000 (15:54 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 11 Aug 2022 13:54:13 +0000 (15:54 +0200)
pdns/recursordist/rec-main.cc

index f54e1da9e04b5be7daa93a7fb2201c104a3e7d46..95aeffcbbed93a64e7b4c4bfb4d7f9a2c3c01d7b 100644 (file)
@@ -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);