Skip to content
This repository was archived by the owner on Mar 9, 2025. It is now read-only.

Commit 360cfbe

Browse files
author
Micate Cn
committed
rsync with googlecode v2.5.2
1 parent 55dd5cc commit 360cfbe

File tree

9 files changed

+565
-630
lines changed

9 files changed

+565
-630
lines changed

CommandInterface.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@ CommandInterface::CommandInterface() : m_prefix("/bin/sh"), m_ignoreError(false)
1212
void CommandInterface::XmlParse(std::string config_file_name)
1313
{
1414
XMLNode xMainNode = XMLNode::openFileHelper(config_file_name.c_str(), "head");
15+
string tmp = xMainNode.getChildNode("debug").getAttribute("start");
16+
if (tmp == "true") m_debug = 1;
1517
XMLNode Node = xMainNode.getChildNode("sersync");
16-
m_watch = Node.getChildNode("localpath").getAttribute("watch");
17-
string tmp = Node.getChildNode("localpath").getAttribute("debug");
18-
if (tmp == "true")
19-
{
20-
m_debug = 1;
21-
}
18+
m_watch = Node.getChildNode("localpath").getAttribute("watch");
2219
int num = xMainNode.nChildNode("plugin");
2320
if (num == 0)
2421
{
@@ -67,7 +64,7 @@ void CommandInterface::XmlParse(std::string config_file_name)
6764

6865
int CommandInterface::Execute(Event e)
6966
{
70-
if (e->operation == 0 || e->mask==256) return 0;
67+
//if (e->operation == 0 || e->mask==256) return 0;
7168
boost::cmatch what;
7269
if (m_filter == true)
7370
{

0 commit comments

Comments
 (0)