Mailing List Archive

NessusClient/nessus report_save.c,1.2,1.2.2.1
Update of /usr/local/cvs/NessusClient/nessus
In directory raccoon.nessus.org:/tmp/cvs-serv25463

Modified Files:
Tag: release-1-0
report_save.c
Log Message:
(Backport from HEAD, tested there a while and proofed good idea)
This reverts parts of a patch from 1.1 to 1.2.
The patch was labeld "fix of bug1411", but it seems
to also break the PDF report creation.
Therefore the filenames are again now created with a
suffix ".pdf". The actual fix of 1411 is untouched
and I verified, that both things work now (at least
for me).
I am unsure why this change happened, so better
wait with porting to 1-0-branch until it is clearified
or proofs a good idea.


Index: report_save.c
===================================================================
RCS file: /usr/local/cvs/NessusClient/nessus/report_save.c,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- report_save.c 17 Jan 2006 18:05:56 -0000 1.2
+++ report_save.c 12 Sep 2006 21:17:04 -0000 1.2.2.1
@@ -313,7 +313,11 @@
{
int be = (int)arg_get_value(arg_get_value(ctrls, "REPORT"), "BE");
char *basename = g_path_get_basename(Context->dir);
- char *filename = g_build_filename(Context->dir, basename, NULL);
+ char *fname = g_strdup_printf("%s.pdf", basename);
+ char *filename = g_build_filename(Context->dir, fname, NULL);
+
+ g_free(basename);
+ g_free(fname);

arglist_to_pdf(be, filename);


_______________________________________________
Nessus-cvs mailing list
Nessus-cvs@list.nessus.org
http://mail.nessus.org/mailman/listinfo/nessus-cvs