View | Details | Raw Unified | Return to bug 66746
Collapse All | Expand All

(-)source/rpcclient/cmd_reg.c (+7 lines)
Lines 900-905 Link Here
900
{
900
{
901
	extern char *optarg;
901
	extern char *optarg;
902
	extern int optind;
902
	extern int optind;
903
#if	defined(__FreeBSD__)
904
	extern int optreset;
905
#endif
903
	NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
906
	NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
904
	fstring msg;
907
	fstring msg;
905
	uint32 timeout = 20;
908
	uint32 timeout = 20;
Lines 907-913 Link Here
907
	int opt;
910
	int opt;
908
911
909
	*msg = 0;
912
	*msg = 0;
913
#if	defined(__FreeBSD__)
914
	optreset = optind = 1;
915
#else
910
	optind = 0; /* TODO: test if this hack works on other systems too --simo */
916
	optind = 0; /* TODO: test if this hack works on other systems too --simo */
917
#endif
911
918
912
	while ((opt = getopt(argc, argv, "m:t:rf")) != EOF)
919
	while ((opt = getopt(argc, argv, "m:t:rf")) != EOF)
913
	{
920
	{

Return to bug 66746