static int io_bufsize = 524288;
static int name_type = 0x20;
-static int max_protocol = PROTOCOL_NT1;
+static int max_protocol = -1;
static int process_tok(char *tok);
static int cmd_help(void);
}
break;
case 'm':
- max_protocol = interpret_protocol(poptGetOptArg(pc), max_protocol);
+ lp_set_cmdline("client max protocol", poptGetOptArg(pc));
break;
case 'T':
/* We must use old option processing for this. Find the
/* Ensure we have a password (or equivalent). */
set_cmdline_auth_info_getpass(auth_info);
+ max_protocol = lp_cli_maxprotocol();
+
if (tar_type) {
if (cmdstr)
process_command_string(cmdstr);