summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-02-24 13:23:03 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-02-24 13:23:03 -0800
commit268ec8d1e0a01459eb7f04e0652f26bb7b597ba6 (patch)
tree54c0c7fc5bcc6b56308eec5753e421a466b5ac57 /node
parent093d745b86ed371327ae5cf948e4c9eef8d29639 (diff)
downloadinfinitytier-268ec8d1e0a01459eb7f04e0652f26bb7b597ba6.tar.gz
infinitytier-268ec8d1e0a01459eb7f04e0652f26bb7b597ba6.zip
Fix for GitHub issue #40: updates.d not being cleared.
Diffstat (limited to 'node')
-rw-r--r--node/SoftwareUpdater.cpp2
1 files changed, 1 insertions, 1 deletions
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<std::string,bool> dl(Utils::listDirectory(updatesDir.c_str()));
for(std::map<std::string,bool>::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());
}
}