From c2a3b11b0738f57accafe19c84b682f761fa9631 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Fri, 3 Dec 1999 22:02:03 +0000 Subject: starting "connection reuse" system in smb-agent. added version number which isn't actually used right now :-) (This used to be commit d54a64ae3ab7cdc1ac67fb49f7255e6a106d624e) --- source3/rpcclient/rpcclient.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'source3/rpcclient') diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 19698a0f833..30fbd4ee9d2 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -1362,6 +1362,7 @@ static void cmd_net(struct client_info *info, int argc, char *argv[]) pstrcpy(dest_host, cli_info.dest_host); pstrcpy(u.user_name,optarg); + u.reuse = False; if (argc <= 1) { @@ -1567,6 +1568,8 @@ static void cmd_set(struct client_info *info, int argc, char *argv[]) *term_code = 0; #endif /* KANJI */ + usr.reuse = False; + if (argc > 1 && *argv[1] != '-') { if (argc > 1 && (*argv[1] != '-')) @@ -1579,10 +1582,16 @@ static void cmd_set(struct client_info *info, int argc, char *argv[]) } } - while ((opt = getopt(argc, argv, "s:B:O:M:S:i:N:n:d:l:hI:EB:U:L:t:m:W:T:D:c:")) != EOF) + while ((opt = getopt(argc, argv, "Rs:B:O:M:S:i:N:n:d:l:hI:EB:U:L:t:m:W:T:D:c:")) != EOF) { switch (opt) { + case 'R': + { + usr.reuse = True; + break; + } + case 'm': { /* FIXME ... max_protocol seems to be funny here */ -- cgit