Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Oops, it seems that this bug appeared in one of the latest versions of the CBSD, when I added PATH before post/hook's jexec.
This is correct execution for ~cbsd/jailctl/jexec script, not for system /usr/sbin/jexec
Each script with #!/usr/local/bin/cbsd shebang trying to execute script from CBSD hier first via custom PATH. But in latest releases I've back PATH to system for some reason.
Correct way to fix is add '/usr/local/bin/cbsd' before jexec in this place, due to 'cbsd jexec' can apply rctl/nice/setfib settings for execution:
I've fix this soon as I get to the normal keyboard ;-) Thanks you for contribution!
upd: correct myself: we do not need to reset PATH for jexec, revert it back and remove PATH redefining.
Reseting of PATH should remain only when the master scripts are executed: they must be performed without CBSD PATH but with CBSD variables: https://www.bsdstore.ru/en/11.1.x/wf_cbsd_variables_ssi.html