Fix regression introduced by SVN r270954. Correct way to reset getopts
is to set OPTIND to 1, not unset it (which causes an error).

Thanks to:	jilles


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270989 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f