Check arguments before eval so we don't end up with a cryptic error message.
authorajacoutot <ajacoutot@openbsd.org>
Wed, 29 Apr 2015 11:05:16 +0000 (11:05 +0000)
committerajacoutot <ajacoutot@openbsd.org>
Wed, 29 Apr 2015 11:05:16 +0000 (11:05 +0000)
commit908626a88b01e8a8cb4da04671db7cb81787c3f7
tree9d5ed9071f4d0b8abe3bb8ebce708b7c01018a24
parent7f6f4fdaad9aa1b0a41e2d837ca3819843154da2
Check arguments before eval so we don't end up with a cryptic error message.
reported by jasper@

While here: _rc_is_supported() -> _rc_not_supported()
- saves a fork
- reduces triple negation to double negation in _rc_not_supported()
- simplifie condition for rc_restart=NO
from schwarze@

ok jasper@ schwarze@
etc/rc.d/rc.subr