summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-02-25 23:45:06 +0000
committerAndrew Tridgell <tridge@samba.org>2001-02-25 23:45:06 +0000
commit4d6e45e41bf7af79e7be6772d83c6dcc23892dea (patch)
treec985dc223766a920b8202450757b93157d7f100d /source3/client
parent1c8eb37534f885c7835f3971e5d28c9e89dd85d1 (diff)
downloadsamba-4d6e45e41bf7af79e7be6772d83c6dcc23892dea.tar.gz
samba-4d6e45e41bf7af79e7be6772d83c6dcc23892dea.tar.bz2
samba-4d6e45e41bf7af79e7be6772d83c6dcc23892dea.zip
the -m option to the client is back
(This used to be commit 69c13434f68b642bdf1a4974849e8a38da02d6c9)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index c9733ce213..f8f26d183d 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -44,7 +44,7 @@ static int io_bufsize = 64512;
extern struct in_addr ipzero;
static int name_type = 0x20;
-
+static int max_protocol = PROTOCOL_NT1;
extern pstring user_socket_options;
static int process_tok(fstring tok);
@@ -1923,6 +1923,8 @@ struct cli_state *do_connect(char *server, char *share)
return NULL;
}
+ c->protocol = max_protocol;
+
if (!cli_session_request(c, &calling, &called)) {
char *p;
DEBUG(0,("session request to %s failed (%s)\n",
@@ -2474,7 +2476,7 @@ static int do_message_op(void)
pstrcpy(term_code, optarg);
break;
case 'm':
- /* no longer supported */
+ max_protocol = interpret_protocol(optarg, max_protocol);
break;
case 'W':
pstrcpy(workgroup,optarg);