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
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>
  • Loading branch information
nichtsfrei and jjnicola committed Sep 5, 2022
1 parent c7729b2 commit 476201e
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 476201e

Please sign in to comment.