From db6bb36703a48c4dd3c4ed795e0c817503a7f545 Mon Sep 17 00:00:00 2001 From: Patrick Van der Veken Date: Wed, 9 Sep 2015 13:22:24 +0200 Subject: [PATCH] Failure in local update should be die() --- manage_sudo.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manage_sudo.sh b/manage_sudo.sh index 1ff6293..72f3c86 100644 --- a/manage_sudo.sh +++ b/manage_sudo.sh @@ -47,7 +47,8 @@ # @(#) 2015-09-06: proper error checking in fix2host(), update2host() by using # @(#) logc() (VRF 1.3.0) [Patrick Van der Veken] # @(#) 2015-09-09: better handling of leading log sigils in die(), log(), logc() -# @(#) and warn(), fix in count_fields() (VRF 1.3.1) [Patrick Van der Veken] +# @(#) and warn(), fix in count_fields(), failure in local update +# @(#) should be die() (VRF 1.3.1) [Patrick Van der Veken] # ----------------------------------------------------------------------------- # DO NOT CHANGE THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING! #****************************************************************************** @@ -1242,7 +1243,7 @@ case ${ARG_ACTION} in RC="$(< ${TMP_RC_FILE})" if (( RC )) then - log "failed to apply SUDO controls locally [RC=${RC}]" + die "failed to apply SUDO controls locally [RC=${RC}]" else log "finished applying SUDO controls locally [RC=${RC}]" fi