All or Any,
I am slowly working my way towards understanding the hbsd-update shell script. HardenedBSD issue 32 hbsd issue 32 calls for a rewrite with C or C++. Also suggested was to use flua. I have a few questions.
First, should the following questions and points of clarification be submitted to the Issue board for #32?
The check_sanity() function has the following,
if [ ${local_resolver} !=
${remote_resolver} ]; then
remote_resolver=${local_resolver}
fi
local_resolver and remote_resolver default to 0, unless the -R option is called then both are set to one. Question: why this check? Is there a situation where local or remote can be set to different values?
Currently I am working out of github (hbsd-update), but I can move it to gitlab if that would make life easier. I understand all the cool kids use gitlab. 🙂 Here's my question, being fairly new to the lua ecosystem, should the lua script be a single monolithic file or is there a way to install the project as a lua package? I mean, I know there's a way to install a lua package, but would it be expedient or even possible since hbsd-update is part of hbsd builds?
Any and all suggestions, criticisms or corrections are welcomed. Six years of submarine duty cured me of having a thin skin, so don't hold back.
-- ”There is a scratch in the prism of my understanding.”