[Openvas-commits] r5557 - in trunk/openvas-client: . openvas src src/gui

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Oct 15 15:38:35 CEST 2009


Author: mattm
Date: 2009-10-15 15:38:29 +0200 (Thu, 15 Oct 2009)
New Revision: 5557

Modified:
   trunk/openvas-client/ChangeLog
   trunk/openvas-client/openvas/attack.c
   trunk/openvas-client/openvas/comm.c
   trunk/openvas-client/src/gui/nvt_pref_sshlogin.c
   trunk/openvas-client/src/omp-cli.c
Log:
	* src/omp-cli.c (print_tasks): Add extra space before report ID.
	(main): Pass content_length to omp_modify_task_file.

	* openvas/comm.c (omp_send_files): Pass content_length to
	omp_modify_task_file.

	* openvas/attack.c (attack_host): Remove specifier from error string.

	* src/gui/nvt_prefs_sshlogin.c (nvt_pref_sshlogin_rebuild_gui): Correct
	doc typo.

Modified: trunk/openvas-client/ChangeLog
===================================================================
--- trunk/openvas-client/ChangeLog	2009-10-15 13:35:39 UTC (rev 5556)
+++ trunk/openvas-client/ChangeLog	2009-10-15 13:38:29 UTC (rev 5557)
@@ -1,3 +1,16 @@
+2009-10-15  Matthew Mundell <matthew.mundell at intevation.de>
+
+	* src/omp-cli.c (print_tasks): Add extra space before report ID.
+	(main): Pass content_length to omp_modify_task_file.
+
+	* openvas/comm.c (omp_send_files): Pass content_length to
+	omp_modify_task_file.
+
+	* openvas/attack.c (attack_host): Remove specifier from error string.
+
+	* src/gui/nvt_prefs_sshlogin.c (nvt_pref_sshlogin_rebuild_gui): Correct
+	doc typo.
+
 2009-10-15  Felix Wolfsteller <felix.wolfsteller at intevation.de>
 
 	* openvas/context.c (context_collect_servers) [DISABLE_OTP]: Fix bug

Modified: trunk/openvas-client/openvas/attack.c
===================================================================
--- trunk/openvas-client/openvas/attack.c	2009-10-15 13:35:39 UTC (rev 5556)
+++ trunk/openvas-client/openvas/attack.c	2009-10-15 13:38:29 UTC (rev 5557)
@@ -174,7 +174,7 @@
 
       if (omp_start_task (&session, prefs_get_string (context, "id")))
         {
-          show_error (_("Failed to start task: %s"));
+          show_error (_("Failed to start task"));
           openvas_server_close (socket, session);
           return 0;
         }

Modified: trunk/openvas-client/openvas/comm.c
===================================================================
--- trunk/openvas-client/openvas/comm.c	2009-10-15 13:35:39 UTC (rev 5556)
+++ trunk/openvas-client/openvas/comm.c	2009-10-15 13:38:29 UTC (rev 5557)
@@ -328,7 +328,8 @@
           if (omp_modify_task_file (&session,
                                     prefs_get_string (context, "id"),
                                     file->data,
-                                    content))
+                                    content,
+                                    content_len))
             {
               show_error (_("Failed to set file on task: '%s'"), file->data);
               g_free (content);

Modified: trunk/openvas-client/src/gui/nvt_pref_sshlogin.c
===================================================================
--- trunk/openvas-client/src/gui/nvt_pref_sshlogin.c	2009-10-15 13:35:39 UTC (rev 5556)
+++ trunk/openvas-client/src/gui/nvt_pref_sshlogin.c	2009-10-15 13:38:29 UTC (rev 5557)
@@ -411,7 +411,7 @@
 }
 
 /**
- * @brief Rebuilds the GUI of the context ctx or sets it up of if it does
+ * @brief Rebuilds the GUI of the context ctx or sets it up if it does
  * @brief not exist yet.
  * 
  * Rebuilds the table with hostnames and sshlogin- comboboxes and selects the

Modified: trunk/openvas-client/src/omp-cli.c
===================================================================
--- trunk/openvas-client/src/omp-cli.c	2009-10-15 13:35:39 UTC (rev 5556)
+++ trunk/openvas-client/src/omp-cli.c	2009-10-15 13:38:29 UTC (rev 5557)
@@ -141,7 +141,7 @@
           else
             printf ("      %s", name);
           if (last_report_id && strlen (last_report_id))
-            printf (" %s\n", last_report_id);
+            printf ("  %s\n", last_report_id);
           else
             putchar ('\n');
         }
@@ -671,7 +671,8 @@
               exit (EXIT_FAILURE);
             }
 
-          if (omp_modify_task_file (&session, *point, name, content))
+          if (omp_modify_task_file (&session, *point, name,
+                                    content, content_len))
             {
               g_free (content);
               fprintf (stderr, "Failed to modify task.\n");



More information about the Openvas-commits mailing list