From 047a8c0157f7cefb97f4e9798cd95e1fdf087a03 Mon Sep 17 00:00:00 2001 From: ajacoutot <> Date: Mon, 19 Nov 2012 07:10:59 +0000 Subject: [PATCH] Remove useless test: rc_rm_runfile() uses rm -f which always returns 0 so we don't care if the file is present or not; also this function should never return a failure. ok halex@ --- src/etc/rc.d/rc.subr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/rc.d/rc.subr b/src/etc/rc.d/rc.subr index 01f7407e..e61ca53e 100644 --- a/src/etc/rc.d/rc.subr +++ b/src/etc/rc.d/rc.subr @@ -1,4 +1,4 @@ -# $OpenBSD: rc.subr,v 1.67 2012/11/18 18:54:52 ajacoutot Exp $ +# $OpenBSD: rc.subr,v 1.68 2012/11/19 07:10:59 ajacoutot Exp $ # # Copyright (c) 2010, 2011 Antoine Jacoutot # Copyright (c) 2010, 2011 Ingo Schwarze @@ -40,7 +40,7 @@ rc_read_runfile() { } rc_rm_runfile() { - [ -f ${_RC_RUNFILE} ] && rm -f ${_RC_RUNFILE} + rm -f ${_RC_RUNFILE} } rc_start() {