summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2012-11-19 07:11:00 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2012-11-19 07:11:00 +0000
commit967579a8972b59bc7e65dc7374e50a63e158c740 (patch)
treebfc900aa2f3ae8d0ca5a32dfab389f4282f7e89f
parent59910f3f0956afda1d487b464158025b51bf2102 (diff)
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@
-rw-r--r--etc/rc.d/rc.subr4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/rc.subr b/etc/rc.d/rc.subr
index 01f7407e384..e61ca53e0f8 100644
--- a/etc/rc.d/rc.subr
+++ b/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 <ajacoutot@openbsd.org>
# Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -40,7 +40,7 @@ rc_read_runfile() {
}
rc_rm_runfile() {
- [ -f ${_RC_RUNFILE} ] && rm -f ${_RC_RUNFILE}
+ rm -f ${_RC_RUNFILE}
}
rc_start() {