summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysrc
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2013-11-07 22:47:52 +0000
committerdteske <dteske@FreeBSD.org>2013-11-07 22:47:52 +0000
commit61b27015684993508254249d2ee561e130124435 (patch)
tree8e0152c5d6e1c373a39729622d0f057446ccdc98 /usr.sbin/sysrc
parent85b0d56215673ac439aad6bd81c750b38fa7cc5d (diff)
downloadFreeBSD-src-61b27015684993508254249d2ee561e130124435.zip
FreeBSD-src-61b27015684993508254249d2ee561e130124435.tar.gz
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).
Diffstat (limited to 'usr.sbin/sysrc')
-rw-r--r--usr.sbin/sysrc/sysrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/sysrc/sysrc b/usr.sbin/sysrc/sysrc
index 7e1ddcb..044fdc3 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
}
OpenPOWER on IntegriCloud