As a followup to the use of login.conf environment vars (other than PATH) in cron, this patch adds PATH (and HOME) to the list of login.conf settings respected.
The new logic is as follows:
- SHELL is always _PATH_BSHELL unless explicitly overridden in the crontab file itself; no other settings are respected. This is unchanged.
- PATH is taken from the first of: crontab file, login.conf, _PATH_DEFPATH
- HOME is taken from the first of: crontab file, login.conf, passwd entry, unset
- The current directory for invoking the command is taken from the crontab file's value of HOME (existing behavior), or the passwd entry, but not anywhere else (so it might not equal HOME if that was set in login.conf).