summaryrefslogtreecommitdiff
path: root/node/Node.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2014-01-26 10:32:12 -0800
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2014-01-26 10:32:12 -0800
commit9d67a02b5f691583220ab858cd2c6a92079e107f (patch)
tree0f3f0053af59cebbb3f5c329749d3523c61144d0 /node/Node.cpp
parent22efa1ab53fcd484657161841468810b43ea1d0d (diff)
downloadinfinitytier-9d67a02b5f691583220ab858cd2c6a92079e107f.tar.gz
infinitytier-9d67a02b5f691583220ab858cd2c6a92079e107f.zip
Lock down individual files in networks.d instead of directory since directory ACLs are more complex on Windows.
Diffstat (limited to 'node/Node.cpp')
-rw-r--r--node/Node.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/node/Node.cpp b/node/Node.cpp
index e55cad04..25c08067 100644
--- a/node/Node.cpp
+++ b/node/Node.cpp
@@ -419,7 +419,7 @@ Node::ReasonForTermination Node::run()
}
Utils::lockDownFile(identitySecretPath.c_str(),false);
- // Make sure networks.d exists and is secure
+ // Make sure networks.d exists
{
std::string networksDotD(_r->homePath + ZT_PATH_SEPARATOR_S + "networks.d");
#ifdef __WINDOWS__
@@ -427,7 +427,6 @@ Node::ReasonForTermination Node::run()
#else
mkdir(networksDotD.c_str(),0700);
#endif
- Utils::lockDownFile(networksDotD.c_str(),true);
}
// Load or generate config authentication secret