From: ajacoutot Date: Mon, 12 Jan 2015 13:40:12 +0000 (+0000) Subject: "timeout" must be a positive integer. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=19037493f6313206fdb3862dd397351bab4cbc1b;p=openbsd "timeout" must be a positive integer. --- diff --git a/usr.sbin/rcctl/rcctl.sh b/usr.sbin/rcctl/rcctl.sh index aa0990fd763..534e2736d9c 100644 --- a/usr.sbin/rcctl/rcctl.sh +++ b/usr.sbin/rcctl/rcctl.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: rcctl.sh,v 1.60 2015/01/08 13:29:34 ajacoutot Exp $ +# $OpenBSD: rcctl.sh,v 1.61 2015/01/12 13:40:12 ajacoutot Exp $ # # Copyright (c) 2014, 2015 Antoine Jacoutot # Copyright (c) 2014 Ingo Schwarze @@ -305,7 +305,7 @@ svc_set() if [ "${_var}" = "timeout" ]; then [[ ${_args} != +([[:digit:]]) || ${_args} -le 0 ]] && \ - _rc_err "${0##*/}: \"${_args}\" is not an integer" + _rc_err "${0##*/}: \"${_args}\" is not a positive integer" fi # unset flags if they match the default enabled ones