Hacks for later
Add CC_HINT(nonnull) to module methods

perl -p -i -e 's/static rlm_rcode_t mod_/static rlm_rcode_t CC_HINT(nonnull) mod_/' $(find src/modules/ -name "*.[ch]" -print)
Add CC_HINT(nonnull) to state machine definitions
If there's no Acct-Terminate-Cause, it's NAS-Reboot

For the on/off query
Simplify rad_mkdir().  Fixes CID #720459

Get rid of stat(), and ensure that we always chmod() the
directory.