diff options
author | 2015-03-02 06:58:42 +0000 | |
---|---|---|
committer | 2015-03-02 06:58:42 +0000 | |
commit | a057057e2707c887f4571de4fe0bd850678efc21 (patch) | |
tree | 6e3734474c75a4df81175df7ce52ad54e40e288b | |
parent | Avoid SIGFPE when parsing an invalid ext2fs through a raw device operation. (diff) | |
download | wireguard-openbsd-a057057e2707c887f4571de4fe0bd850678efc21.tar.xz wireguard-openbsd-a057057e2707c887f4571de4fe0bd850678efc21.zip |
Extend previous.
ok sebastia@
-rw-r--r-- | usr.sbin/rcctl/rcctl.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rcctl/rcctl.sh b/usr.sbin/rcctl/rcctl.sh index f1752af67f3..ed110bc5cf5 100644 --- a/usr.sbin/rcctl/rcctl.sh +++ b/usr.sbin/rcctl/rcctl.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: rcctl.sh,v 1.65 2015/03/01 18:38:05 sebastia Exp $ +# $OpenBSD: rcctl.sh,v 1.66 2015/03/02 06:58:42 ajacoutot Exp $ # # Copyright (c) 2014, 2015 Antoine Jacoutot <ajacoutot@openbsd.org> # Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -133,7 +133,7 @@ svc_is_base() local _svc=$1 [ -n "${_svc}" ] || return - grep "start_daemon " /etc/rc | cut -d ' ' -f2- | grep -qw -- ${_svc} + grep -E 'start_daemon[[:space:]]+[[:alnum:]]' /etc/rc | cut -d ' ' -f2- | grep -qw -- ${_svc} } svc_is_special() |