diff options
Diffstat (limited to 'source/client/smbmount.c')
-rw-r--r-- | source/client/smbmount.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/source/client/smbmount.c b/source/client/smbmount.c index 40e21e1eb1d..2c941836e39 100644 --- a/source/client/smbmount.c +++ b/source/client/smbmount.c @@ -27,6 +27,8 @@ #include <asm/types.h> #include <linux/smb_fs.h> +extern struct in_addr ipzero; + extern BOOL in_client; extern pstring user_socket_options; extern BOOL append_log; @@ -118,6 +120,7 @@ static struct cli_state *do_connection(char *svc_name) struct nmb_name called, calling; char *server_n; struct in_addr ip; + extern struct in_addr ipzero; pstring server; char *share; @@ -141,7 +144,7 @@ static struct cli_state *do_connection(char *svc_name) make_nmb_name(&called , server, 0x20); again: - zero_ip(&ip); + ip = ipzero; if (have_ip) ip = dest_ip; /* have to open a new connection */ @@ -450,22 +453,22 @@ static void init_mount(void) if (mount_uid) { slprintf(tmp, sizeof(tmp)-1, "%d", mount_uid); args[i++] = "-u"; - args[i++] = smb_xstrdup(tmp); + args[i++] = xstrdup(tmp); } if (mount_gid) { slprintf(tmp, sizeof(tmp)-1, "%d", mount_gid); args[i++] = "-g"; - args[i++] = smb_xstrdup(tmp); + args[i++] = xstrdup(tmp); } if (mount_fmask) { slprintf(tmp, sizeof(tmp)-1, "0%o", mount_fmask); args[i++] = "-f"; - args[i++] = smb_xstrdup(tmp); + args[i++] = xstrdup(tmp); } if (mount_dmask) { slprintf(tmp, sizeof(tmp)-1, "0%o", mount_dmask); args[i++] = "-d"; - args[i++] = smb_xstrdup(tmp); + args[i++] = xstrdup(tmp); } if (options) { args[i++] = "-o"; @@ -745,7 +748,7 @@ static void parse_mount_smb(int argc, char **argv) DEBUGLEVEL = val; } else if(!strcmp(opts, "ip")) { dest_ip = *interpret_addr2(opteq+1); - if (is_zero_ip(dest_ip)) { + if (zero_ip(dest_ip)) { fprintf(stderr,"Can't resolve address %s\n", opteq+1); exit(1); } |