diff options
author | 2014-09-17 03:16:00 +0000 | |
---|---|---|
committer | 2014-09-17 03:16:00 +0000 | |
commit | bd221533a026d90201d045506ba1034fd75f1b91 (patch) | |
tree | d6042e10ee202e062ea877adde59b2a1ced4d5d8 /sys/kern/subr_pool.c | |
parent | Remove unused #define. (diff) | |
download | wireguard-openbsd-bd221533a026d90201d045506ba1034fd75f1b91.tar.xz wireguard-openbsd-bd221533a026d90201d045506ba1034fd75f1b91.zip |
if userland asks for an unknown sysctl, return EOPNOTSUPP instead
of EINVAL like other sysctl things do.
Diffstat (limited to 'sys/kern/subr_pool.c')
-rw-r--r-- | sys/kern/subr_pool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c index d0bee2ead3f..b2ac8709427 100644 --- a/sys/kern/subr_pool.c +++ b/sys/kern/subr_pool.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_pool.c,v 1.156 2014/09/16 23:05:34 dlg Exp $ */ +/* $OpenBSD: subr_pool.c,v 1.157 2014/09/17 03:16:00 dlg Exp $ */ /* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */ /*- @@ -1382,7 +1382,7 @@ sysctl_dopool(int *name, u_int namelen, char *oldp, size_t *oldlenp) case KERN_POOL_POOL: break; default: - return (EINVAL); + return (EOPNOTSUPP); } if (namelen != 2) |