Displaying 3 results from an estimated 3 matches for "have_ip".
Did you mean:
have_zip
2003 Oct 26
0
Patches for samba 3.0.0 client/client.c
...c 2003-10-27 01:38:37.000000000 +0800
@@ -49,6 +49,8 @@
static int process_tok(fstring tok);
static int cmd_help(void);
+static int connect_timeout = 20*1000;
+
/* 30 second timeout on most commands */
#define CLIENT_TIMEOUT (30*1000)
#define SHORT_TIMEOUT (5*1000)
@@ -2533,7 +2535,9 @@
if (have_ip) ip = dest_ip;
/* have to open a new connection */
- if (!(c=cli_initialise(NULL)) || (cli_set_port(c, port) != port) ||
+
+ if (!(c=cli_initialise(NULL)) || !(c->timeout = connect_timeout) ||
+ (cli_set_port(c, port) != port) ||
!cli_connect(c, server_n, &ip)) {...
2000 Jul 17
0
[PATCH] `smbclient -M' ignores `-p port'
...gt;
> Samba maintainers please apply. 2.0, HEAD and TNG all have this bug.
>
> Peter
>
> --- samba-2.0.x/source/client/client.c~ Mon Jul 3 01:15:21 2000
> +++ samba-2.0.x/source/client/client.c Sun Jul 16 15:33:34 2000
> @@ -2164,7 +2164,8 @@
> ip = ipzero;
> if (have_ip) ip = dest_ip;
>
> - if (!(cli=cli_initialise(NULL)) || !cli_connect(cli, desthost, &ip)) {
> + if (!(cli=cli_initialise(NULL)) || !cli_set_port(cli, port) ||
> + !cli_connect(cli, desthost, &ip)) {
> DEBUG(0,("Connection to %s failed\n", desthost));
>...
2000 Jul 16
1
"smbclient -p <port>" appears to be broken in Samba 2.x
I posted this problem as a question to this list a while ago and got no
reply. I submitted it as a bug, but found that "samba-bugs@samba.org",
no longer accepts bug reports, even though the web page says to send them
to that address.
Wondering if the option had been intentionally discontinuted without
updating the man page, I made a quick check of the source and found that
the "-p