diff options
author | 2010-04-03 21:32:53 +0000 | |
---|---|---|
committer | 2010-04-03 21:32:53 +0000 | |
commit | 684d3c758eccbfa4132ce83a986490f944b64ff1 (patch) | |
tree | b7a704a740f6daf1725cfa1faeeff1f2e4e1d2db | |
parent | Don't return 0 if error is set to EBADRPC. Found by jsg@ and clang. (diff) | |
download | wireguard-openbsd-684d3c758eccbfa4132ce83a986490f944b64ff1.tar.xz wireguard-openbsd-684d3c758eccbfa4132ce83a986490f944b64ff1.zip |
Add hw.product to the bsd.rd sysctl(8) binary. ok deraadt@
-rw-r--r-- | distrib/special/sysctl/sysctl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/distrib/special/sysctl/sysctl.c b/distrib/special/sysctl/sysctl.c index 2695a92b3ea..c622b690edd 100644 --- a/distrib/special/sysctl/sysctl.c +++ b/distrib/special/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.5 2009/06/03 23:44:53 krw Exp $ */ +/* $OpenBSD: sysctl.c,v 1.6 2010/04/03 21:32:53 miod Exp $ */ /* * Copyright (c) 2009 Theo de Raadt <deraadt@openbsd.org> @@ -42,6 +42,8 @@ struct var vars[] = { { CTL_HW, HW_MACHINE }}, { "hw.model", pstring, 2, { CTL_HW, HW_MODEL }}, + { "hw.product", pstring, 2, + { CTL_HW, HW_PRODUCT }}, { "hw.disknames", pstring, 2, { CTL_HW, HW_DISKNAMES }}, { "hw.ncpufound", pint, 2, |