1
0
mirror of https://github.com/samba-team/samba.git synced 2025-09-20 17:44:21 +03:00

r21: Ensure 'net' follows the behaviour of all other samba client tools,

and honours the 'netbios name' in the smb.conf.
This commit is contained in:
Andrew Bartlett
2004-04-05 08:31:58 +00:00
committed by Gerald (Jerry) Carter
parent dfac69be4f
commit 591047c20a

View File

@@ -141,7 +141,7 @@ NTSTATUS connect_to_ipc(struct cli_state **c, struct in_addr *server_ip,
} }
} }
nt_status = cli_full_connection(c, opt_requester_name, server_name, nt_status = cli_full_connection(c, NULL, server_name,
server_ip, opt_port, server_ip, opt_port,
"IPC$", "IPC", "IPC$", "IPC",
opt_user_name, opt_workgroup, opt_user_name, opt_workgroup,
@@ -750,10 +750,8 @@ static struct functable net_func[] = {
} }
} }
if (!opt_requester_name) { if (opt_requester_name) {
static fstring myname; set_global_myname(opt_requester_name);
get_myname(myname);
opt_requester_name = myname;
} }
if (!opt_user_name && getenv("LOGNAME")) { if (!opt_user_name && getenv("LOGNAME")) {