[Openvas-commits] r2752 - in trunk/openvas-manager: . src
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Mar 12 20:16:52 CET 2009
Author: mattm
Date: 2009-03-12 20:16:47 +0100 (Thu, 12 Mar 2009)
New Revision: 2752
Modified:
trunk/openvas-manager/ChangeLog
trunk/openvas-manager/src/otp.c
Log:
* src/otp.c (save_report): Move the actual report into the task directory.
Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog 2009-03-12 10:55:14 UTC (rev 2751)
+++ trunk/openvas-manager/ChangeLog 2009-03-12 19:16:47 UTC (rev 2752)
@@ -1,14 +1,18 @@
2009-03-11 Matthew Mundell <matt at mundell.ukfsn.org>
+ * src/otp.c (save_report): Move the actual report into the task directory.
+
+2009-03-11 Matthew Mundell <matt at mundell.ukfsn.org>
+
Add per-user reports directories.
* src/otp.c (save_report): Save the report to the report directory of the
- user and link the repot to the task directory, instead of saving to the
+ user and link the report to the task directory, instead of saving to the
task directory.
* src/omp.c (omp_xml_handle_end_element): Get the report from the user
report directory instead of the task directory. Ensure the report name
- has the right format. Free content_error. Free current_task_task_id in
+ has the right format. Free content_error. Free current_task_task_id in
the fail case.
2009-03-11 Matthew Mundell <matt at mundell.ukfsn.org>
Modified: trunk/openvas-manager/src/otp.c
===================================================================
--- trunk/openvas-manager/src/otp.c 2009-03-12 10:55:14 UTC (rev 2751)
+++ trunk/openvas-manager/src/otp.c 2009-03-12 19:16:47 UTC (rev 2752)
@@ -338,12 +338,12 @@
return -1;
}
- gchar* name = g_build_filename (user_dir_name, buffer, NULL);
+ gchar* name = g_build_filename (dir_name, buffer, NULL);
+ g_free (dir_name);
+
+ gchar* symlink_name = g_build_filename (user_dir_name, buffer, NULL);
g_free (user_dir_name);
- gchar* symlink_name = g_build_filename (dir_name, buffer, NULL);
- g_free (dir_name);
-
/* Write report. */
FILE* file = fopen (name, "w");
More information about the Openvas-commits
mailing list