Lloyd <[email protected]> writes:
>>Synopsis: security(8) throws false error
>>Category: security(8)
>>Environment:
> System : OpenBSD 7.6
> Details : OpenBSD 7.6-current (CUSTOM) #4: Sat Dec 14 01:13:27
> GMT 2024
> lloyd@bsdtst01:/sys/arch/amd64/compile/CUSTOM
>
> Architecture: OpenBSD.amd64
> Machine : amd64
>>Description:
>
> (This issue is also present on 7.6, not just -current.)
>
> Nightly runs of security(8) throw the following error:
>
> Checking root sh paths, umask values:
> /etc/profile /root/.profile
> Failed to find ENV in /root/.profile.
>
> Investigation showed this issue was triggered by calling neofetch(1) with no
> options from /root/.profile.
I would recommand to run neofetch (or others fortune(6)-like program) under
interactive shell only.
something like:
case "$-" in
*i*) # interactive shell
/usr/games/fortune
;;
esac
Regards.
--
Sebastien Marie