From 268ec8d1e0a01459eb7f04e0652f26bb7b597ba6 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 24 Feb 2014 13:23:03 -0800 Subject: Fix for GitHub issue #40: updates.d not being cleared. --- node/SoftwareUpdater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node/SoftwareUpdater.cpp') diff --git a/node/SoftwareUpdater.cpp b/node/SoftwareUpdater.cpp index 397149cf..cb54185f 100644 --- a/node/SoftwareUpdater.cpp +++ b/node/SoftwareUpdater.cpp @@ -81,7 +81,7 @@ void SoftwareUpdater::cleanOldUpdates() std::map dl(Utils::listDirectory(updatesDir.c_str())); for(std::map::iterator i(dl.begin());i!=dl.end();++i) { if (!i->second) - Utils::rm(i->first.c_str()); + Utils::rm((updatesDir + ZT_PATH_SEPARATOR_S + i->first).c_str()); } } -- cgit v1.2.3