HomeFreeBSD

Only print the errno string in case sysctl(3) does not file with ENOENT

Description

Only print the errno string in case sysctl(3) does not file with ENOENT
This reduces the noise in error reporing from sysctl(8):

Before:
$ sysctl bla=something
sysctl: unknown oid 'bla': No such file or directory

After:
$ sysctl bla=something
sysctl: unknown oid 'bla'

MFC after: 1 week
Sponsored by: Gandi.net

Details

Provenance
baptAuthored on
Parents
rS288983: A follow-up to r288492. In fact, revert the mentioned commit for
Branches
Unknown
Tags
Unknown