From bb28b8697d507891dcfcf69df4038331720f71f1 Mon Sep 17 00:00:00 2001 From: Devin Teske Date: Thu, 7 Nov 2013 22:47:52 +0000 Subject: [PATCH] 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). --- usr.sbin/sysrc/sysrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr.sbin/sysrc/sysrc b/usr.sbin/sysrc/sysrc index 7e1ddcb79efe..044fdc392d65 100644 --- a/usr.sbin/sysrc/sysrc +++ b/usr.sbin/sysrc/sysrc @@ -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 }