]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Only print the errno string in case sysctl(3) does not file with ENOENT
authorbapt <bapt@FreeBSD.org>
Wed, 7 Oct 2015 09:28:54 +0000 (09:28 +0000)
committerbapt <bapt@FreeBSD.org>
Wed, 7 Oct 2015 09:28:54 +0000 (09:28 +0000)
commit8a05965c7726b144472bd7736c22167bf25819e5
treeb331424af19cbaced9bde328a566c6a9f81e845f
parent58e0a4096fe55cc3548ea668f795925a29276273
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
sbin/sysctl/sysctl.c