HomeFreeBSD

service(8): Reset OPTIND properly now that we're parsing args twice

Description

service(8): Reset OPTIND properly now that we're parsing args twice

r328032 introduced a second round of argument parsing to proxy the request
through to a jail as needed, but failed to reset OPTIND before getting to
the second round of parsing to allow other flags to be set.

Reported by: Oleg Ginzburg <olevole olevole ru>

Details

Provenance
kevansAuthored on
Parents
rS328059: Improve the printing of cmgs when the length is 0. Fix error handling.
Branches
Unknown
Tags
Unknown