Browse Source

Remove dependency on basename(1).

prodded by deraadt@
ok kn@ deraadt@ tb@
OPENBSD_6_6
ajacoutot 5 years ago
parent
commit
235460ceeb
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.131 2019/03/21 15:10:27 ajacoutot Exp $
# $OpenBSD: rc.subr,v 1.132 2019/09/07 10:02:19 ajacoutot Exp $
#
# Copyright (c) 2010, 2011, 2014-2017 Antoine Jacoutot <ajacoutot@openbsd.org>
# Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@ -266,7 +266,7 @@ rc_cmd() {
esac
}
_name=$(basename $0)
_name=${0##*/}
_rc_check_name "${_name}" || _rc_err "invalid rc.d script name: ${_name}"
[ -n "${daemon}" ] || _rc_err "$0: daemon is not set"


Loading…
Cancel
Save