svn commit: r257824 - head/usr.sbin/sysrc

Devin Teske dteske at FreeBSD.org
Thu Nov 7 22:47:52 UTC 2013


Author: dteske
Date: Thu Nov  7 22:47:52 2013
New Revision: 257824
URL: http://svnweb.freebsd.org/changeset/base/257824

Log:
  Fix a bug that prevented `-d' from working as-documented in sysrc(8).
  Rather, prevent a bunch of debugging information from spewing onto the
  screen when using the `describe' flag (misinterpreted as `debug' by
  the automatatic initialization routines).

Modified:
  head/usr.sbin/sysrc/sysrc

Modified: head/usr.sbin/sysrc/sysrc
==============================================================================
--- head/usr.sbin/sysrc/sysrc	Thu Nov  7 22:46:13 2013	(r257823)
+++ head/usr.sbin/sysrc/sysrc	Thu Nov  7 22:47:52 2013	(r257824)
@@ -28,6 +28,9 @@
 #
 ############################################################ INCLUDES
 
+# Prevent `-d' from being interpreted as a debug flag by common.subr
+DEBUG_SELF_INITIALIZE=
+
 BSDCFG_SHARE="/usr/share/bsdconfig"
 [ "$_COMMON_SUBR" ] || . $BSDCFG_SHARE/common.subr || exit 1
 [ "$_SYSRC_SUBR"  ] || f_include $BSDCFG_SHARE/sysrc.subr
@@ -179,6 +182,7 @@ jail_depend()
 	#
 	# Print include dependencies
 	#
+	echo DEBUG_SELF_INITIALIZE=
 	cat $BSDCFG_SHARE/common.subr
 	cat $BSDCFG_SHARE/sysrc.subr
 }


More information about the svn-src-head mailing list