Browse Source

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@
OPENBSD_5_3
ajacoutot 12 years ago
parent
commit
047a8c0157
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/etc/rc.d/rc.subr

+ 2
- 2
src/etc/rc.d/rc.subr View File

@ -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 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org> # Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@ -40,7 +40,7 @@ rc_read_runfile() {
} }
rc_rm_runfile() { rc_rm_runfile() {
[ -f ${_RC_RUNFILE} ] && rm -f ${_RC_RUNFILE}
rm -f ${_RC_RUNFILE}
} }
rc_start() { rc_start() {


Loading…
Cancel
Save