Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Oct 1998 08:00:12 +0100 (MET)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        mike@smith.net.au (Mike Smith)
Cc:        hackers@FreeBSD.ORG
Subject:   Re: sysctl for string arguments ?
Message-ID:  <199810070700.IAA08022@labinfo.iet.unipi.it>
In-Reply-To: <199810061834.LAA00391@dingo.cdrom.com> from "Mike Smith" at Oct 6, 98 11:34:24 am

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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

	luigi


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?199810070700.IAA08022>