[Guessnet-devel] [svn] r169 - in trunk: . src

Enrico Zini enrico at costa.debian.org
Sat Sep 23 13:13:01 UTC 2006


Author: enrico
Date: Sat Sep 23 13:13:00 2006
New Revision: 169

Modified:
   trunk/   (props changed)
   trunk/src/GuessnetParser.cc
   trunk/src/ScriptScanner.cc
Log:
 r435 at viaza:  enrico | 2006-09-23 14:12:44 +0100
 Get the right parameter from the command regexp in guessnetparser


Modified: trunk/src/GuessnetParser.cc
==============================================================================
--- trunk/src/GuessnetParser.cc	(original)
+++ trunk/src/GuessnetParser.cc	Sat Sep 23 13:13:00 2006
@@ -150,7 +150,7 @@
 			else if (script_line.match(line))
 			{
 				string name = script_line[1];
-				string cmd = script_line[2];
+				string cmd = script_line[3];
 				//fprintf(stderr, "TEST: %.*s\n", PFSTR(cmd));
 				//debug("Will use script %.*s to test %.*s\n",
 				//	PFSTR(cmd), PFSTR(name));

Modified: trunk/src/ScriptScanner.cc
==============================================================================
--- trunk/src/ScriptScanner.cc	(original)
+++ trunk/src/ScriptScanner.cc	Sat Sep 23 13:13:00 2006
@@ -29,7 +29,7 @@
 {
 	MutexLock lock(candMutex);
 
-	verbose("script %s terminated with status %d\n", signature.c_str(), status);
+	verbose("script [%s] terminated with status %d\n", signature.c_str(), status);
 
 	if (status != 0)
 		return;
@@ -47,6 +47,7 @@
 	if (i == scans.end())
 	{
 		scans.insert(pair<string, const Scan*>(scan->signature(), scan));
+		verbose("adding candidate script [%s] with tag [%s]\n", scan->cmdline().c_str(), scan->signature().c_str());
 		runner.addProcess(scan->signature(), scan->cmdline(), this);
 	}
 }



More information about the Guessnet-devel mailing list