]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow setting of variables of type dev_t by indicating the name of
authorphk <phk@FreeBSD.org>
Sun, 30 Dec 2001 10:33:34 +0000 (10:33 +0000)
committerphk <phk@FreeBSD.org>
Sun, 30 Dec 2001 10:33:34 +0000 (10:33 +0000)
commitf13d9cf9463fb49d09bc7fc7942545d599575ee2
tree9934b51106ad104457396fbd997219cd009d1af3
parent8f722634d165105474259d7bca71d9535e65a649
Allow setting of variables of type dev_t by indicating the name of
a special file on the command line, eg:
  sysctl kern.dumpdev=/dev/ad1s1b

In parse(), when a value is given for a CTLTYPE_QUAD variable,
newval and newsize erroneously fail to be set because of an early
"break".

show_var() contains code that duplicates the functionality of the
oidfmt() function.

PR: 33151, 33150
Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org>
sbin/sysctl/sysctl.c