bin/50365: [PATCH] rc.sysctl cannot handle values
containing spaces
Philipp Mergenthaler
philipp.mergenthaler at stud.uni-karlsruhe.de
Tue Oct 7 03:30:23 PDT 2003
The following reply was made to PR bin/50365; it has been noted by GNATS.
From: Philipp Mergenthaler <philipp.mergenthaler at stud.uni-karlsruhe.de>
To: freebsd-gnats-submit at FreeBSD.org,
christopher.rodgers at 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,
More information about the freebsd-bugs
mailing list