Clear filter early before running plugin

This commit is contained in:
Arun Prakash Jana 2021-07-19 01:52:44 +05:30
parent 3b5800fc7a
commit c470143113
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 1 deletions

View File

@ -6702,6 +6702,7 @@ nochange:
/* Copy path so we can return back to earlier dir */
xstrsncpy(path, rundir, PATH_MAX);
rundir[0] = '\0';
clearfilter();
if (chdir(path) == -1
|| !run_plugin(&path, pent->name,
@ -6716,7 +6717,6 @@ nochange:
xstrsncpy(lastname, runfile, NAME_MAX + 1);
runfile[0] = '\0';
}
clearfilter();
setdirwatch();
goto begin;
}