From 0f6081e4606f44253f282cc189570603a7126b97 Mon Sep 17 00:00:00 2001 From: Antoine Jacoutot Date: Sat, 11 Aug 2012 17:55:59 +0000 Subject: Make a couple of variables local. from robert at peichaer dot org ok halex@ --- etc/rc.d/rc.subr | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/rc.d/rc.subr b/etc/rc.d/rc.subr index e5359d99dc5..0edcc4de989 100644 --- a/etc/rc.d/rc.subr +++ b/etc/rc.d/rc.subr @@ -1,4 +1,4 @@ -# $OpenBSD: rc.subr,v 1.59 2012/08/04 15:30:25 ajacoutot Exp $ +# $OpenBSD: rc.subr,v 1.60 2012/08/11 17:55:58 ajacoutot Exp $ # # Copyright (c) 2010, 2011 Antoine Jacoutot # Copyright (c) 2010, 2011 Ingo Schwarze @@ -68,6 +68,7 @@ rc_do() { } rc_exit() { + local _pfix [ -z "${INRC}" -o X"$1" != X"ok" ] && _pfix="($1)" echo ${INRC:+'-n'} "${_pfix}" [ X"$1" = X"ok" ] && exit 0 || exit 1 @@ -94,7 +95,7 @@ rc_wait() { } rc_cmd() { - local _bg _n + local _bg _enotsup _n [ "$(id -u)" -eq 0 ] || \ [ X"${rc_usercheck}" != X"NO" -a X"$1" = "Xcheck" ] || \ -- cgit v1.2.3