svn commit: r288984 - head/sbin/sysctl
Conrad Meyer
cem at FreeBSD.org
Wed Oct 7 22:02:52 UTC 2015
On Wed, Oct 7, 2015 at 2:28 AM, Baptiste Daroussin <bapt at freebsd.org> wrote:
> --- head/sbin/sysctl/sysctl.c Wed Oct 7 09:12:49 2015 (r288983)
> +++ head/sbin/sysctl/sysctl.c Wed Oct 7 09:28:54 2015 (r288984)
> @@ -276,7 +276,11 @@ parse(const char *string, int lineno)
> if (qflag)
> return (1);
> else {
> - warn("unknown oid '%s'%s", bufp, line);
> + if (errno == ENOENT) {
> + warnx("unknown oid '%s'%s", bufp, line);
> + } else {
> + warn("unknown oid '%s'%s", bufp, line);
Is "unknown oid" an appropriate warning for errno != ENOENT?
> + }
> return (1);
> }
> }
>
Best,
Conrad
More information about the svn-src-all
mailing list