From 86056fdbd923fbf55f85b3db704bba021ea90c4f Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 8 Aug 2013 10:06:39 -0400 Subject: Generalize unlink to OS-dep code in Utils, just a little prep for Windows port. --- node/Node.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node/Node.cpp') diff --git a/node/Node.cpp b/node/Node.cpp index 92d8a75c..47125854 100644 --- a/node/Node.cpp +++ b/node/Node.cpp @@ -339,8 +339,8 @@ Node::ReasonForTermination Node::run() Utils::lockDownFile(identitySecretPath.c_str(),false); // Clean up some obsolete files if present -- this will be removed later - unlink((_r->homePath + ZT_PATH_SEPARATOR_S + "status").c_str()); - unlink((_r->homePath + ZT_PATH_SEPARATOR_S + "thisdeviceismine").c_str()); + Utils::rm((_r->homePath + ZT_PATH_SEPARATOR_S + "status")); + Utils::rm((_r->homePath + ZT_PATH_SEPARATOR_S + "thisdeviceismine")); // Make sure networks.d exists mkdir((_r->homePath + ZT_PATH_SEPARATOR_S + "networks.d").c_str(),0700); -- cgit v1.2.3