[Openvas-commits] r3316 - in trunk/openvas-manager: . src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon May 11 10:34:39 CEST 2009


Author: mattm
Date: 2009-05-11 10:34:39 +0200 (Mon, 11 May 2009)
New Revision: 3316

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/manage.c
Log:
	* src/manage.c (task_plugins): Separate plugins with semicolons.


Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2009-05-11 08:21:32 UTC (rev 3315)
+++ trunk/openvas-manager/ChangeLog	2009-05-11 08:34:39 UTC (rev 3316)
@@ -1,5 +1,9 @@
 2009-05-11  Matthew Mundell <mmundell at intevation.de>
 
+	* src/manage.c (task_plugins): Separate plugins with semicolons.
+
+2009-05-11  Matthew Mundell <mmundell at intevation.de>
+
 	* doc/Doxyfile (EXTRACT_STATIC): Enable.
 
 	* src/ompd.c (serve_omp): Doc missing params.

Modified: trunk/openvas-manager/src/manage.c
===================================================================
--- trunk/openvas-manager/src/manage.c	2009-05-11 08:21:32 UTC (rev 3315)
+++ trunk/openvas-manager/src/manage.c	2009-05-11 08:34:39 UTC (rev 3316)
@@ -702,6 +702,8 @@
   char* orig_desc = desc;
   char* seek;
   GString* plugins = g_string_new ("");
+  gboolean first = TRUE;
+
   while ((seek = strchr (desc, '\n')))
     {
       char* eq = seek
@@ -736,7 +738,13 @@
                 {
                   if (strncasecmp (eq2 + 2, "yes", 3) == 0)
                     {
-                      g_string_append_len (plugins, desc, eq2 - desc - 1);
+                      if (first)
+                        first = FALSE;
+                      else
+                        g_string_append_c (plugins, ';');
+                      /* FIX Rather skip all whitespace before and after
+                             name. */
+                      g_string_append_len (plugins, desc + 1, eq2 - desc - 2);
 #if 0
                       tracef ("   plugin: %.*s\n",
                               eq2 - desc - 1,



More information about the Openvas-commits mailing list