From 6bdf1ad525d8021f55720ece65bcc0f0a8f1f631 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 5 Sep 2022 02:59:56 +0100 Subject: Make the temporary filenames used by modules more unique. This prevents zombie files from causing problems. --- src/modules/m_xline_db.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_xline_db.cpp') diff --git a/src/modules/m_xline_db.cpp b/src/modules/m_xline_db.cpp index 727adb5fe..ca48f883d 100644 --- a/src/modules/m_xline_db.cpp +++ b/src/modules/m_xline_db.cpp @@ -103,7 +103,7 @@ class ModuleXLineDB * -- w00t */ ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "Opening temporary database"); - std::string xlinenewdbpath = xlinedbpath + ".new"; + const std::string xlinenewdbpath = xlinedbpath + ".new." + ConvToStr(ServerInstance->Time()); std::ofstream stream(xlinenewdbpath.c_str()); if (!stream.is_open()) { -- cgit v1.3.1-10-gc9f91