Author: jan
Date: 2007-07-05 16:48:42 +0200 (Thu, 05 Jul 2007)
New Revision: 259
Modified:
trunk/openvas-client/ChangeLog
trunk/openvas-client/nessus/nessus.h
trunk/openvas-client/nessus/pdf_output.c
trunk/openvas-client/nessus/plugin_cache.c
trunk/openvas-client/nessus/preferences.c
trunk/openvas-client/nessus/prefs_dialog/prefs_dialog.c
Log:
* nessus/preferences.c, nessus/pdf_output.c, nessus/plugin_cache.c,
nessus/nessus.h: rename files and directory from ".nessus*" to ".openvas*"
* nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_setup): Set a default
size for the main window (1000x630).
Modified: trunk/openvas-client/ChangeLog
===================================================================
--- trunk/openvas-client/ChangeLog 2007-07-05 14:25:23 UTC (rev 258)
+++ trunk/openvas-client/ChangeLog 2007-07-05 14:48:42 UTC (rev 259)
@@ -1,5 +1,13 @@
2007-07-05 Jan-Oliver Wagner <[EMAIL PROTECTED]>
+ * nessus/preferences.c, nessus/pdf_output.c, nessus/plugin_cache.c,
+ nessus/nessus.h: rename files and directory from ".nessus*" to
".openvas*"
+
+ * nessus/prefs_dialog/prefs_dialog.c (prefs_dialog_setup): Set a default
+ size for the main window (1000x630).
+
+2007-07-05 Jan-Oliver Wagner <[EMAIL PROTECTED]>
+
And more renaming from NessusClient ot OpenVAS-Client.
* nessus/OpenVAS-Client.desktop: Renamed from NessusClient to
Modified: trunk/openvas-client/nessus/nessus.h
===================================================================
--- trunk/openvas-client/nessus/nessus.h 2007-07-05 14:25:23 UTC (rev
258)
+++ trunk/openvas-client/nessus/nessus.h 2007-07-05 14:48:42 UTC (rev
259)
@@ -48,7 +48,7 @@
extern char * NESSUS_RCFILE;
extern int init_directories;
#else
-#define NESSUS_RCFILE "~/.nessusrc"
+#define NESSUS_RCFILE "~/.openvasrc"
#endif
Modified: trunk/openvas-client/nessus/pdf_output.c
===================================================================
--- trunk/openvas-client/nessus/pdf_output.c 2007-07-05 14:25:23 UTC (rev
258)
+++ trunk/openvas-client/nessus/pdf_output.c 2007-07-05 14:48:42 UTC (rev
259)
@@ -418,7 +418,7 @@
const char *nessus_dir = estrdup(prefs_get_string(Global, "nessus_dir"));
- snprintf(tmpfname, PATH_MAX, "%s/.nessus_%d_pdf",nessus_dir, getpid());
+ snprintf(tmpfname, PATH_MAX, "%s/.openvas_%d_pdf",nessus_dir, getpid());
while (!getcwd(cwd, cwd_max))
{ cwd_max=cwd_max+PATH_MAX;
@@ -726,7 +726,7 @@
fprintf(file, "<hr>\n<i>");
PRINT(file,
- _("This file was generated by <a
href=\"http://www.nessus.org\">Nessus</a>, the free security scanner."));
+ _("This file was generated by <a
href=\"http://www.openvas.org\">OpenVAS</a>, the free security scanner."));
fprintf(file, "</i></BODY>\n");
fprintf(file, "</HTML>\n");
fclose(file);
Modified: trunk/openvas-client/nessus/plugin_cache.c
===================================================================
--- trunk/openvas-client/nessus/plugin_cache.c 2007-07-05 14:25:23 UTC (rev
258)
+++ trunk/openvas-client/nessus/plugin_cache.c 2007-07-05 14:48:42 UTC (rev
259)
@@ -78,7 +78,7 @@
*
* A cache file is specific for a given context and is stored in the
* same directory as the nessusrc file for the context. The cache for
- * the global context is ~/.nessus_plugin_cache. If an alternate
+ * the global context is ~/.openvas_plugin_cache. If an alternate
* nessurc file was given on the command line, no caching is done.
*/
@@ -128,8 +128,8 @@
{
char *home = prefs_get_nessushome();
- filename = emalloc(strlen(home) + strlen("/.nessus_plugin_cache") + 1);
- sprintf(filename, "%s/.nessus_plugin_cache", home);
+ filename = emalloc(strlen(home) + strlen("/.openvas_plugin_cache") + 1);
+ sprintf(filename, "%s/.openvas_plugin_cache", home);
}
}
Modified: trunk/openvas-client/nessus/preferences.c
===================================================================
--- trunk/openvas-client/nessus/preferences.c 2007-07-05 14:25:23 UTC (rev
258)
+++ trunk/openvas-client/nessus/preferences.c 2007-07-05 14:48:42 UTC (rev
259)
@@ -114,8 +114,8 @@
{
char *home = prefs_get_nessushome();
- nessusrc = emalloc(strlen(home) + strlen("/.nessusrc") + 1);
- sprintf(nessusrc, "%s/.nessusrc", home);
+ nessusrc = emalloc(strlen(home) + strlen("/.openvasrc") + 1);
+ sprintf(nessusrc, "%s/.openvasrc", home);
}
}
return nessusrc;
@@ -675,8 +675,8 @@
if(!nessus_dir)
{
char *nessushome = prefs_get_nessushome();
- nessus_dir = emalloc(strlen(nessushome) + strlen("/.nessus") + 1);
- sprintf(nessus_dir, "%s/.nessus", nessushome);
+ nessus_dir = emalloc(strlen(nessushome) + strlen("/.openvas") + 1);
+ sprintf(nessus_dir, "%s/.openvas", nessushome);
}
return nessus_dir;
}
Modified: trunk/openvas-client/nessus/prefs_dialog/prefs_dialog.c
===================================================================
--- trunk/openvas-client/nessus/prefs_dialog/prefs_dialog.c 2007-07-05
14:25:23 UTC (rev 258)
+++ trunk/openvas-client/nessus/prefs_dialog/prefs_dialog.c 2007-07-05
14:48:42 UTC (rev 259)
@@ -352,6 +352,7 @@
* We draw the window ....
*/
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
+ gtk_window_set_default_size(GTK_WINDOW(window), 1000, 630);
g_signal_connect(G_OBJECT(window), "delete_event",
G_CALLBACK(gtk_main_quit), NULL);
g_signal_connect(G_OBJECT(window), "delete_event",
_______________________________________________
Openvas-commits mailing list
[email protected]
http://lists.wald.intevation.org/mailman/listinfo/openvas-commits