Date: Tue, 7 Oct 2003 03:30:21 -0700 (PDT) From: Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de> To: freebsd-bugs@FreeBSD.org Subject: Re: Re: bin/50365: [PATCH] rc.sysctl cannot handle values containing spaces Message-ID: <200310071030.h97AULPW092070@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR bin/50365; it has been noted by GNATS.
From: Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>
To: freebsd-gnats-submit@FreeBSD.org,
christopher.rodgers@st-johns.oxford.ac.uk
Cc:
Subject: Re: Re: bin/50365: [PATCH] rc.sysctl cannot handle values containing spaces
Date: Tue, 7 Oct 2003 12:28:58 +0200
I'd like to see this fixed, too.
The original patch doesn't apply on -current anymore (because of
the new /etc/rc.d), though. Below is an updated version.
Index: etc/rc.d/sysctl
===================================================================
RCS file: /ncvs/src/etc/rc.d/sysctl,v
retrieving revision 1.12
diff -u -r1.12 sysctl
--- etc/rc.d/sysctl 24 Apr 2003 08:20:47 -0000 1.12
+++ etc/rc.d/sysctl 7 Oct 2003 07:47:52 -0000
@@ -46,7 +46,7 @@
${val})
;;
*)
- sysctl ${var}
+ sysctl "${var}"
;;
esac
elif [ "$1" = "last" ]; then
Index: share/man/man5/sysctl.conf.5
===================================================================
RCS file: /ncvs/src/share/man/man5/sysctl.conf.5,v
retrieving revision 1.15
diff -u -r1.15 sysctl.conf.5
--- share/man/man5/sysctl.conf.5 9 Jan 2002 16:09:00 -0000 1.15
+++ share/man/man5/sysctl.conf.5 7 Oct 2003 07:34:07 -0000
@@ -43,6 +43,8 @@
sysctl_mib=value
.Ed
.Pp
+Spaces must be escaped with a backslash.
+Do not enclose the value in quotation marks.
Comments are denoted by a
.Dq #
at the beginning of a line. Comments can also exist at the end of a line,
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310071030.h97AULPW092070>
