summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysrc
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2013-07-05 16:21:44 +0000
committerdteske <dteske@FreeBSD.org>2013-07-05 16:21:44 +0000
commit02a66d5bd9f4f67df7c4a72151b05fddf5b55f8c (patch)
tree885944c9791722420636e7b46de75266747b547c /usr.sbin/sysrc
parent0ac55ea171e6d82b0acc861ebcb19fb4db4958c4 (diff)
downloadFreeBSD-src-02a66d5bd9f4f67df7c4a72151b05fddf5b55f8c.zip
FreeBSD-src-02a66d5bd9f4f67df7c4a72151b05fddf5b55f8c.tar.gz
Do not inherit $SYSRC_VERBOSE from operating environment. The concern is
that when a user (such as myself) which has SYSRC_VERBOSE=1 in his/her ~/.bash_profile or such that when they are told to execute a command like: hostname `sysrc -n hostname` NOTE: To activate a recently configured hostname. If $SYSRC_VERBOSE is set, then POLA is violated because the output of sysrc is indirectly influenced (making for an inconsistent experience).
Diffstat (limited to 'usr.sbin/sysrc')
-rw-r--r--usr.sbin/sysrc/sysrc10
1 files changed, 2 insertions, 8 deletions
diff --git a/usr.sbin/sysrc/sysrc b/usr.sbin/sysrc/sysrc
index e1c15d6..1ddcbde 100644
--- a/usr.sbin/sysrc/sysrc
+++ b/usr.sbin/sysrc/sysrc
@@ -1,6 +1,6 @@
#!/bin/sh
#-
-# Copyright (c) 2010-2012 Devin Teske
+# Copyright (c) 2010-2013 Devin Teske
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -32,13 +32,6 @@ BSDCFG_SHARE="/usr/share/bsdconfig"
[ "$_COMMON_SUBR" ] || . $BSDCFG_SHARE/common.subr || exit 1
[ "$_SYSRC_SUBR" ] || f_include $BSDCFG_SHARE/sysrc.subr
-############################################################ CONFIGURATION
-
-#
-# Default verbosity.
-#
-: ${SYSRC_VERBOSE:=}
-
############################################################ GLOBALS
#
@@ -55,6 +48,7 @@ SHOW_EQUALS=
SHOW_FILE=
SHOW_NAME=1
SHOW_VALUE=1
+SYSRC_VERBOSE=
############################################################ FUNCTIONS
OpenPOWER on IntegriCloud