diff --git a/src/etc/rc.d/rc.subr b/src/etc/rc.d/rc.subr index 5c45d5fa..58af023f 100644 --- a/src/etc/rc.d/rc.subr +++ b/src/etc/rc.d/rc.subr @@ -1,4 +1,4 @@ -# $OpenBSD: rc.subr,v 1.52 2011/10/09 08:48:53 ajacoutot Exp $ +# $OpenBSD: rc.subr,v 1.53 2011/10/09 16:46:55 schwarze Exp $ # # Copyright (c) 2010, 2011 Antoine Jacoutot # Copyright (c) 2010, 2011 Ingo Schwarze @@ -34,7 +34,8 @@ rc_write_runfile() { } rc_read_runfile() { - [ -f ${_RC_RUNFILE} ] && pexp=$(< ${_RC_RUNFILE}) + [ -f ${_RC_RUNFILE} ] && local _new_pexp=$(< ${_RC_RUNFILE}) + [ -n "${_new_pexp}" ] && pexp="${_new_pexp}" } rc_rm_runfile() {