CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2025/11/29 03:44:46

Modified files:
        etc/rc.d       : spamlogd unbound 

Log message:
Reset getopts to decouple rcctl and daemon_flags;  from [email protected];  OK sthen

ksh(1)'s OPTIND is global and only saved/restored for `function' style 
functions.

That means passing, e.g. -d to rcctl(8) would leave OPTIND=2 for rc_pre() in
rc.subr(8) scripts using getopts, thus starting (continuing, really) parsing
options at the second argument.

Reply via email to