[Openvas-commits] r6066 - in trunk/openvas-libraries: . nasl

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sat Dec 5 18:20:47 CET 2009


Author: mwiegand
Date: 2009-12-05 18:20:46 +0100 (Sat, 05 Dec 2009)
New Revision: 6066

Modified:
   trunk/openvas-libraries/ChangeLog
   trunk/openvas-libraries/nasl/exec.c
Log:
* nasl/exec.c (exec_nasl_script): Use correct glib function for
determining the directory.


Modified: trunk/openvas-libraries/ChangeLog
===================================================================
--- trunk/openvas-libraries/ChangeLog	2009-12-05 11:49:16 UTC (rev 6065)
+++ trunk/openvas-libraries/ChangeLog	2009-12-05 17:20:46 UTC (rev 6066)
@@ -1,3 +1,8 @@
+2009-12-05  Michael Wiegand <michael.wiegand at intevation.de>
+
+	* nasl/exec.c (exec_nasl_script): Use correct glib function for
+	determining the directory.
+
 2009-12-04  Michael Wiegand <michael.wiegand at intevation.de>
 
 	* nasl/exec.c (exec_nasl_script): Fixed a potential memory leak,

Modified: trunk/openvas-libraries/nasl/exec.c
===================================================================
--- trunk/openvas-libraries/nasl/exec.c	2009-12-05 11:49:16 UTC (rev 6065)
+++ trunk/openvas-libraries/nasl/exec.c	2009-12-05 17:20:46 UTC (rev 6066)
@@ -1789,7 +1789,7 @@
       arg_set_value (script_infos, "script_name", strlen(name), estrdup(name));
     }
 
- newdir = g_path_get_basename (name);
+ newdir = g_path_get_dirname (name);
 
  if (g_chdir (newdir) != 0)
    {



More information about the Openvas-commits mailing list