Skip to content

Commit

Permalink
Change: make error message clearer when chdir fails
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtsfrei committed Oct 14, 2022
1 parent 76cd0a3 commit e29c588
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nasl/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1645,8 +1645,8 @@ 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",
newdir);
g_message ("%s: Not able to change working directory to %s (%d [%s]).",
__func__, newdir, errno, strerror (errno));
g_free (old_dir);
g_free (newdir);
return -1;
Expand Down

0 comments on commit e29c588

Please sign in to comment.