Skip to content

Commit e3ff9f8

Browse files
committed
resolvconf: OPTIND must be 1 when re-entering getopts
POSIX demands this. Fixes #33.
1 parent 74e5bc3 commit e3ff9f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: resolvconf.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,8 @@ list_resolv()
508508
{
509509
[ -d "$IFACEDIR" ] || return 0
510510

511-
OPTIND=
512511
list_cmd=
512+
OPTIND=1
513513
while getopts iLl OPT; do
514514
case "$OPT" in
515515
'?') exit 1;;

0 commit comments

Comments
 (0)