Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2013 16:09:53 +0000
From:      "Teske, Devin" <Devin.Teske@fisglobal.com>
To:        freebsd-stable stable <Freebsd-stable@freebsd.org>
Cc:        Devin Teske <dteske@freebsd.org>, "Teske, Devin" <Devin.Teske@fisglobal.com>
Subject:   [Regression] SVN r244198 broke double-quotes in /etc/sysctl.conf*
Message-ID:  <EA0E8B58-2E29-43A3-91A5-F559BAAC531B@fisglobal.com>

next in thread | raw e-mail | index | archive | help
Hi all,

It appears as though SVN r244198 introduced a regression.
One that is affecting HEAD and stable/10 (for upcoming 10.0-R)
and was introduced 10 months ago (but does not appear to
have made it into 9.x yet or even stable/9).

The regression introduced by r244198 is that:

Whilst "sysctl -f /etc/sysctl.conf" will parse parameters with
quoted values...

"service sysctl start" will not work with quoted values.

It seems to me that /etc/rc.d/sysctl should be using "sysctl -f file"
to be consistent.

For example...

cat <<EOF >> /etc/sysctl.conf
net.inet.ip.forwarding=3D"0"
EOF

sysctl net.inet.ip.forwarding=3D1
sysctl net.inet.ip.forwarding
# reports 1
service sysctl start
# error: /etc/rc.d/sysctl: WARNING: unable to set net.inet.ip.forwarding=3D=
"0"
# value unchanged
sysctl -f /etc/sysctl.conf
sysctl net.inet.ip.forwarding
# value changed to 0
--=20
Devin

_____________
The information contained in this message is proprietary and/or confidentia=
l. If you are not the intended recipient, please: (i) delete the message an=
d all copies; (ii) do not disclose, distribute or use the message in any ma=
nner; and (iii) notify the sender immediately. In addition, please be aware=
 that any message addressed to our domain is subject to archiving and revie=
w by persons other than the intended recipient. Thank you.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EA0E8B58-2E29-43A3-91A5-F559BAAC531B>