Skip to content

Commit

Permalink
Fix: use newdir as a path in message when verification failure (#1182) (
Browse files Browse the repository at this point in the history
#1185)

Instead of printing the file path it should print the dir paths since
g_chdir is used to verify dir rights not file rights.

Co-authored-by: Juan José Nicola <juan.nicola@greenbone.net>
(cherry picked from commit 476201e)

Co-authored-by: Philipp Eder <philipp.eder@greenbone.net>
  • Loading branch information
mergify[bot] and nichtsfrei authored Sep 5, 2022
1 parent aa0f42a commit bf78810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nasl/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bf78810

Please sign in to comment.