From 598306602886167be115e631d5fc079a0ce64683 Mon Sep 17 00:00:00 2001 From: Philipp Eder Date: Tue, 30 Aug 2022 13:50:22 +0200 Subject: [PATCH] Fix: use newdir as a path in message when verification failure Instead of printing the file path it should print the dir paths since g_chdir is used to verify dir rights not file rights. --- nasl/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nasl/exec.c b/nasl/exec.c index 454a19ba6..6f9cf0267 100644 --- a/nasl/exec.c +++ b/nasl/exec.c @@ -1646,7 +1646,7 @@ exec_nasl_script (struct script_infos *script_infos, int mode) if (g_chdir (newdir) != 0) { g_message ("%s: Not able to open nor to locate it in include paths", - name); + newdir); g_free (old_dir); g_free (newdir); return -1;