Date: Wed, 07 Oct 1998 19:03:10 +0930 From: Leigh Hart <hart@dotat.com> To: hackers@FreeBSD.ORG Subject: Re: sysctl for string arguments ? Message-ID: <199810070933.TAA13299@at.dotat.com> In-Reply-To: Your message of "Wed, 07 Oct 1998 08:00:12 %2B0100." <199810070700.IAA08022@labinfo.iet.unipi.it>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Luigi, Luigi Rizzo <luigi@labinfo.iet.unipi.it> wrote: > > > other strings in sysctl args seem not to be R/W (or at least, > > > not settable with the "sysctl" command... e.g. kern.hostname and the > > > like). > > > > kern.corefile in kern_sig.c. > > ok, thanks (i was looking on -stable...) > > On this subject, it seems that sysctl on 2.2.6 at least does not accept > strings containing spaces: > > sysctl -w kern.hostname=a,b,c > > works, whereas > > sysctl -w kern.hostname="a b c" > > fails. I am not sure who does the parsing of strings removing > whitespace, nor if this works on -current Wierd - on 2.2.5 and 3.0-971006-SNAP this ("a b c") works fine ...: # sysctl -w kern.hostname="a b c" kern.hostname: duster.adelaide.on.net -> a b c # uname -a FreeBSD a b c 2.2.5-RELEASE FreeBSD 2.2.5-RELEASE #0: Sun Apr 26 13:33:54 CST 1998 root@duster:/usr/src/sys/compile/DUSTER i386 I don't have a 2.2.6 system to try it on however... Cheers Leigh -- | "By the time they had diminished | Leigh Hart, <hart@dotat.com> | | from 50 to 8, the other dwarves | Dotat Communications Pty Ltd | | began to suspect 'Hungry' ..." | GPO Box 487 Adelaide SA 5001 | | -- Gary Larson, "The Far Side" | http://www.dotat.com/hart/ | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810070933.TAA13299>