Report from Rudolf Cejka <cejkar@fit.vutbr.cz> and a patch from him: getopt(3) implementation under FreeBSD intorduces one more gloval variable, that need to be initialized - optreset: extern int optreset; In order to use getopt() to evaluate multiple sets of arguments, or to evaluate a single set of arguments multiple times, the variable optreset must be set to 1 before the second and each additional set of calls to getopt(), and the variable optind must be reinitialized. Apparently, rpcclient requires such a usage of getopt(), so the variable need to be initialised.
Created attachment 901 [details] Check, that optreset variable is declared.
Created attachment 902 [details] Set optreset variable in the rpcclient
I'm removing that function from rpcclient since the stable interface is actually 'net rpc shutdown'.
originally reported against 3.0.11pre1. Moving back to version to 3.0.10 to remove preX and rcX versions.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.