Browse Source

Fix an issue when uid != euid (e.g. when running shutdown(8) as a

regular user, member of the operator group); rm(1) was waiting for
interactive input to remove the runfiles which made no sense, so just
use `-f'.
issue spotted by weerd@
ok weerd@ robert@
OPENBSD_5_1
ajacoutot 12 years ago
parent
commit
510e3b9553
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.55 2011/10/15 16:05:15 halex Exp $
# $OpenBSD: rc.subr,v 1.56 2011/11/30 08:06:02 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 ${_RC_RUNFILE}
[ -f ${_RC_RUNFILE} ] && rm -f ${_RC_RUNFILE}
}
rc_start() {


Loading…
Cancel
Save